npm配置都在~/.npmrc
,修改~/.npmrc
文件即可。
也可使用命令:
介绍
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| registry=https://registry.npmmirror.com/
sass_binary_site=https://npmmirror.com/mirrors/node-sass/
phantomjs_cdnurl=https://npmmirror.com/mirrors/phantomjs/
electron_mirror=https://npmmirror.com/mirrors/electron/
sqlite3_binary_host_mirror=http://npmmirror.com/mirrors/
profiler_binary_host_mirror=http://npmmirror.com/mirrors/node-inspector/
chromedriver_cdnurl=https://npmmirror.com/mirrors/chromedriver
sentrycli_cdnurl=https://npmmirror.com/mirrors/sentry-cli/
|
配置
.npmrc
文件
linux位置:/home/rocyuan(自己的用户)/.npmrc (~/.npmrc)
windows位置:C:\Users\Administrator(自己的用户).npmrc
1 2 3 4 5 6 7 8
| registry=https://registry.npmmirror.com/ sass_binary_site=https://npmmirror.com/mirrors/node-sass/ phantomjs_cdnurl=https://npmmirror.com/mirrors/phantomjs/ electron_mirror=https://npmmirror.com/mirrors/electron/ sqlite3_binary_host_mirror=http://npmmirror.com/mirrors/ profiler_binary_host_mirror=http://npmmirror.com/mirrors/node-inspector/ chromedriver_cdnurl=https://npmmirror.com/mirrors/chromedriver sentrycli_cdnurl=https://npmmirror.com/mirrors/sentry-cli/
|