如何使用淘宝 NPM 镜像,安装CNPM的方法

npm 版本需要大于 3.0

前提:安装好npm

环境:Linux

直接在linux下输入命令:

npm install -g cnpm --registry=https://registry.npm.taobao.org

这样就可以使用 cnpm 命令来安装模块了:

cnpm install [name]
原文地址:https://www.cnblogs.com/fandx/p/10755299.html