安裝篇-nodejs 12.x 安裝


1、安裝

yum clean all && yum makecache fast
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash -
yum install nodejs -y

2、配置

    1. 命令
npm config set registry https://registry.npm.taobao.org
    1. 驗證命令
npm config get registry

如果返回https://registry.npm.taobao.org,說明鏡像配置成功。

3、cnpm安裝

    1. 安裝cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
    1. 使用cnpm
cnpm install xxx


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM