处理cnpm控制台运行无反应(干瞪眼 就是不动)

cnpm install 控制台无反应 大招开启 卸了你 再说

1.卸载cnpm 

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

2.设置淘宝镜像

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

3.清空缓存

npm cache clean --force

会提示你 using --force I sure hope you know what you are doing.

4.重新安装cnpm 

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

综上就可以了。希望对你有帮助哦 

原文地址:https://www.cnblogs.com/NanKe-Studying/p/14162169.html