cnpm卡住不动

先卸载原来的cnpm

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

注册模块镜像

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

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

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

清空缓存

npm cache clean --force

安装cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org
posted @ 2021-03-04 14:29  继续吧  阅读(467)  评论(0)    收藏  举报