1.使用我们定制的 cnpm (gzip 压缩支持) 命令行工具代替默认的 npm
:
npm install -g cnpm --registry=https://registry.npm.taobao.org
2.把npm的register给永久设置过来就好了,这样使用cnpm或者npm就没差别了。(可选可不选)
npm config set registry https://-- 配置后可通过下面方式来验证是否成功
npm config get registry
1.使用我们定制的 cnpm (gzip 压缩支持) 命令行工具代替默认的 npm
:
npm install -g cnpm --registry=https://registry.npm.taobao.org
2.把npm的register给永久设置过来就好了,这样使用cnpm或者npm就没差别了。(可选可不选)
npm config set registry https://-- 配置后可通过下面方式来验证是否成功
npm config get registry