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

问题产生:执行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…
起源:简书
著作权归作者所有。商业转载请分割作者取得受权,非商业转载请注明出处。

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理