参考 https://blog.csdn.net/qq_44624386/article/details/107813078

删除cnpm

npm uninstall cnpm -g

解决无法安装cnpm,cnpm卡顿问题

1) 注册模块镜像

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

2) node-gyp 编译依赖的 node 源码镜像

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

3) 清空缓存

npm cache clean --force 

4) 安装cnpm(淘宝镜像)

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

相关文章:

  • 2021-09-24
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-23
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2021-11-30
  • 2022-12-23
  • 2022-01-15
  • 2021-04-27
  • 2021-11-09
  • 2021-11-19
相关资源
相似解决方案