Skip to content

Instantly share code, notes, and snippets.

@wayou
Last active August 28, 2021 08:20
Show Gist options
  • Save wayou/baa18849de3424db5d7ca24e94645c25 to your computer and use it in GitHub Desktop.
Save wayou/baa18849de3424db5d7ca24e94645c25 to your computer and use it in GitHub Desktop.
配置 npm 及相关资源访问国内镜像的 npmrc
# package-lock=false
registry="https://registry.npm.taobao.org"
disturl="https://npm.taobao.org/dist"
nvm_nodejs_org_mirror="http://npm.taobao.org/mirrors/node"
nodejs_org_mirror="http://npm.taobao.org/mirrors/node"
sass_binary_site="http://npm.taobao.org/mirrors/node-sass"
electron_mirror="http://npm.taobao.org/mirrors/electron/"
SQLITE3_BINARY_SITE="http://npm.taobao.org/mirrors/sqlite3"
profiler_binary_host_mirror="http://npm.taobao.org/mirrors/node-inspector/"
node_inspector_cdnurl="https://npm.taobao.org/mirrors/node-inspector"
selenium_cdnurl="http://npm.taobao.org/mirrors/selenium"
puppeteer_download_host="https://npm.taobao.org/mirrors"
chromedriver_cdnurl="https://npm.taobao.org/mirrors/chromedriver"
operadriver_cdnurl="https://npm.taobao.org/mirrors/operadriver"
phantomjs_cdnurl="https://npm.taobao.org/mirrors/phantomjs"
fse_binary_host_mirror="https://npm.taobao.org/mirrors/fsevents"
@wayou
Copy link
Author

wayou commented Mar 30, 2019

@wayou
Copy link
Author

wayou commented Mar 30, 2019

usage:

$ wget https://gist.githubusercontent.com/wayou/baa18849de3424db5d7ca24e94645c25/raw/84910c72f9e600d665e088deafbcd8c7cedcf9d4/.npmrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment