为**内地的Node.js开发者准备的镜像配置,大大提高node模块安装速度。
- 支持Windows和其他操作系统
- 自动配置各个node模块的安装源为淘宝镜像
npm i -g mirror-config-china --registry=https://registry.npmmirror.com
# 查看npm配置
npm config list
# 查看环境变量
source ~/.bashrc && env
registry.npmjs.com 镜像URL
npmmirror.com/mirrors 镜像URL,会覆盖下文中的{bin-mirrors}
nodejs.org/dist 镜像URL
iojs.org/dist 镜像URL
github.com/npm/npm/releases 镜像URL
其他参数将被写入.npmrc
文件中
- ChromeDriver
- Electron
- git-win
- node-gyp
- node-inspector
- node-sass
- sqlite3
- nodegit
- nodist
- nvm-windows
- nvm
- OperaDriver
- phantomjs
- Puppeteer
- selenium-standalone
- windows-build-tools
- @swc/core
cd ~/my-project
mirror-config-china --registry=https://registry.npmmirror.com