cnpm重新安装

cnpm卸载与安装步骤

当cnpm安装不正确时或是使用cnpm -v无反应时可以考虑重装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://blog.csdn.net/weixin_41187842/article/details/109827165

posted @   沐春风-燕南飞  阅读(905)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
点击右上角即可分享
微信分享提示