NPM源设置
1、查看当前源
npm config get registry
2、npm初始
npm config set registry https://registry.npmjs.org
3、npm-淘宝源
npm config set registry https://registry.npm.taobao.org
[yarn][https://classic.yarnpkg.com/en/docs/install#windows-stable]
4、查看当前源
yarn config get registry
5、yarn初始
yarn config set registry https://registry.yarnpkg.com
6、yarn-淘宝源
yarn config set registry https://registry.npm.taobao.org
7、cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org