首页 > 其他分享 >cnpm重新安装

cnpm重新安装

时间:2022-09-18 10:23:51浏览次数:86  
标签:npm 重新安装 cnpm taobao registry https

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

标签:npm,重新安装,cnpm,taobao,registry,https
From: https://www.cnblogs.com/brithToSpring/p/16704291.html

相关文章