- npm set registry https://registry.npm.taobao.org # 注册模块镜像
- npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像
- npm cache clean --force # 清空缓存
- npm install -g cnpm --registry=https://registry.npm.taobao.org
npm安装cnpm淘宝镜像
猜你喜欢
转载自www.cnblogs.com/xiaofenguo/p/9753100.html
今日推荐
周排行