过去的 npm 没有提供更高 registry 的功能,所以淘宝提供了一个 cnpm 包管理器,用于从淘宝镜像源下载依赖包。
    cnpm 支持和 npm 几乎所有的命令。目前,npm 已经可以更高 registry 了,cnpm 的用于也就不大了。

    安装 cnpm:

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