mirror-config-china
为中国内地的Node.js开发者准备的镜像配置,大大提高node模块安装速度
详情: https://www.npmjs.com/package/mirror-config-china
安装
npm i -g mirror-config-china --registry=https://registry.npm.taobao.org
# 检查是否安装成功
npm config list
淘宝 NPM 镜像
https://developer.aliyun.com/mirror/NPM
你可以使用我们定制的 cnpm (gzip 压缩支持) 命令行工具代替默认的 npm:
安装
$ npm install -g cnpm --registry=https://registry.npm.taobao.org