The new configuration after installation NODEJS

1 Ali mirror server configuration

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

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

2 Installation cnpm

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

3 Installation yarn

npm install -g yarn


4 Ali mirroring configuration yarn

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

5 modify the global installation path

yarn config set global-folder "path to your disk"

Amendment 6 yarn cache path

yarn config set cache-folder "path to your disk"


 

 

 

 

 

 

 





 

Guess you like

Origin www.cnblogs.com/Leechg/p/11582621.html