随笔 - 112  文章 - 1  评论 - 2  阅读 - 23993

关于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
posted on   Steven_YF  阅读(742)  评论(0编辑  收藏  举报
(评论功能已被禁用)
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示