1. 安装 `npm install cnpm -g` 2.设置使用淘宝镜像源 `npm install cnpm -g --registry=https://registry.npm.taobao.org` 3.使用 cnpm install [name] 须要注意的是cnpm不支持publish命令,用时须要切换回npm 若是你想知道npm安装node包的安装进度能够设置`npm config set loglevel=http`,它会在发起每一次http请求时log。 参考文章(http://www.uedbox.com/npm-install-slow-solution/)