转载--控制台cnpm运行无反应

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

清空缓存

npm cache clean --force

重新安装cnpm

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

链接:https://www.it610.com/article/1305171034982354944.htm

posted @ 2020-11-13 22:38  逐鹿之心-fullse  阅读(110)  评论(0)    收藏  举报