npm切换淘宝源,yarn切换淘宝源
1、npm
设置为淘宝源:
npm config set registry http://registry.npm.taobao.org/
设置为默认源:
npm config set registry https://registry.npmjs.org/
2、yarn
设置为淘宝源:
yarn config set registry https://registry.npm.taobao.org
设置为默认源:
yarn config set registry https://registry.yarnpkg.com
评论已关闭