- 查看 npm config
npm config ls
- 打开
user config
如/Users/USER_NAME/.npmrc
- 更新内容
registry=https://registry.npmmirror.com
electron_mirror=https://registry.npmmirror.com/-/binary/electron/
npm config ls
user config
如/Users/USER_NAME/.npmrc
registry=https://registry.npmmirror.com
electron_mirror=https://registry.npmmirror.com/-/binary/electron/