cnpm -v卡顿。无法下载各种包
文章目录
问题产生:执行cnpm的时候,就一直卡住
先卸载原来的cnpm
npm uninstall -g cnpm --registry=https://registry.npm.taobao.org注册模块镜像
npm set registry https://registry.npm.taobao.orgnode-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...
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论