新安装NODEJS之后配置

1配置阿里镜像服务器

npm config set registry https://registry.npm.taobao.org --global

npm config set disturl https://npm.taobao.org/dist --global

2安装cnpm

npm install cnpm -g -registry=https://registry.npm.taobao.org 

3安装yarn

npm install -g yarn


4配置yarn阿里镜像

yarn config set registry https://registry.npm.taobao.org

5修改全局安装路径

yarn config  set global-folder "你的磁盘路径"

6修改yarn缓存路径

yarn config set cache-folder "你的磁盘路径"






猜你喜欢

转载自www.cnblogs.com/Leechg/p/11582621.html
今日推荐