问题产生:执行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...
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。