cnpm一直卡着不动

1.先卸载cnpm

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/qq_38409994/article/details/106550877

猜你喜欢

转载自blog.csdn.net/qq_41834729/article/details/113665539
今日推荐