1、查看源
npm config get registry
1、切换淘宝源
npm config set registry http://registry.npm.taobao.org/
3、切换默认源
npm config set registry https://registry.npmjs.org/
1、查看源
npm config get registry
1、切换淘宝源
npm config set registry http://registry.npm.taobao.org/
3、切换默认源
npm config set registry https://registry.npmjs.org/