cnpm卸载与安装步骤


1.卸载原有旧的版本:

npm uninstall -g cnpm --registry=https://registry.npm.taobao.org

2.注册模块镜像:

npm set registry https://registry.npm.taobao.org

3.node-gyp 编译依赖的 node 源码镜像

npm set disturl https://npm.taobao.org/dist

4.清空缓存

npm cache clean --force

5.重新安装cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

转载:https://www.jianshu.com/p/c46d1f69a76b


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM