Last active
December 16, 2023 11:45
-
-
Save wayou/a1a6fb1fc5153bc20829c7b2700ec0bc to your computer and use it in GitHub Desktop.
配置 yarn 使用国内镜像进行安装的 rc 文件,将此文件放到项目根目录使用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
usage:
$ wget https://gist.githubusercontent.com/wayou/a1a6fb1fc5153bc20829c7b2700ec0bc/raw/0a33e57630475326aaf6f19b5501605f4afe640e/.yarnrc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.npmrc
: https://gist.github.com/wayou/baa18849de3424db5d7ca24e94645c25