npm修改为淘宝源

// 设置 淘宝镜像源
npm config set registry https://registry.npm.taobao.org
// 查看 使用的 镜像源
npm config get registry// 安装 淘宝镜像源
npm install -g cnpm --registry=https://registry.npm.taobao.org

  

原文地址:https://www.cnblogs.com/linkong1081/p/13138464.html