在项目下创建 .npmrc
文件内容如下
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/