Yarn
-
查看一下当前Global 所在目录
yarn global dir
-
查看一下当前源
yarn config get registry
-
切换为淘宝源
yarn config set registry https://registry.npm.taobao.org
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ -
切换默认源
yarn config set registry https://registry.yarnpkg.com
Npm
把以上除第一条命令中的yarn 都换成npm就可以
网友评论