1、使用以下命令安装淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
参考:http://npm.taobao.org/