[Skill]加速npm与yarn还原

npm源

使用cnpm

alias cnpm="npm --registry=https://registry.npm.taobao.org
//或者
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install 

修改源地址

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

yarn源

//查看默认源地址
 yarn config get registry 
//设置源地址为淘宝
yarn config set registry 'http://registry.npm.taobao.org'

setting

posted @ 2020-11-22 10:46  LandWind  阅读(485)  评论(0编辑  收藏  举报