npm安装cnpm淘宝镜像

 
  1. npm set registry https://registry.npm.taobao.org # 注册模块镜像
  2. npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像
  3. npm cache clean --force # 清空缓存
  4. npm install -g cnpm --registry=https://registry.npm.taobao.org

猜你喜欢

转载自www.cnblogs.com/xiaofenguo/p/9753100.html