npm config get registry
查看npm源,默认源是 https://registry.npmjs.org/
npm config set registry https://registry.npm.taobao.org
更换npm源
npm config get registry
查看npm源,默认源是 https://registry.npmjs.org/
npm config set registry https://registry.npm.taobao.org
更换npm源
转载于:https://www.cnblogs.com/jialilue/p/10479571.html