npm切换cnpm:
打开终端, 输入以下指令
npm config set registry https://registry.npm.taobao.org
查看是否切换成功
npm config get registry
查看是否切换成功,成功则会显示
https://registry.npm.taobao.org/
cnpm切换npm
终端输入以下指令:
npm config set registry https://registry.npmjs.org
查看是否切换成功
npm config get registry
查看是否切换成功,成功则会显示
https://registry.npmjs.org/
结束----
版权声明:本文为Leo_DLi原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。