关于npm:cnpm-v卡顿无法下载各种包

6次阅读

共计 375 个字符,预计需要花费 1 分钟才能阅读完成。

问题产生:执行 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

作者:哆啦在这 A 梦在哪
链接:https://www.jianshu.com/p/f73…
起源:简书
著作权归作者所有。商业转载请分割作者取得受权,非商业转载请注明出处。

正文完
 0