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
posted on 2018-10-08 10:55  半夏微澜ぺ  阅读(263)  评论(0编辑  收藏  举报