cnpm的安装 npm使用的是国外服务器,cnpm使用的是淘宝镜像, 使用下面命令安装设置国内淘宝的npm镜像。 npm install -g cnpm --registry=http://registry.npm.taobao.org