备忘 大部分来自:https://github.com/ly525/luban-h5/blob/dev/deploy/mirror.sh
# ==========================================================# NPM# ==========================================================npm set registry "https://registry.npm.taobao.org"npm set disturl "https://npm.taobao.org/dist"npm set chromedriver-cdnurl "https://npm.taobao.org/mirrors/chromedriver"npm set couchbase-binary-host-mirror "https://npm.taobao.org/mirrors/couchbase/v{version}"npm set debug-binary-host-mirror "https://npm.taobao.org/mirrors/node-inspector"npm set electron-mirror "https://npm.taobao.org/mirrors/electron/"npm set flow-bin-binary-host-mirror "https://npm.taobao.org/mirrors/flow/v"npm set fse-binary-host-mirror "https://npm.taobao.org/mirrors/fsevents"npm set fuse-bindings-binary-host-mirror "https://npm.taobao.org/mirrors/fuse-bindings/v{version}"npm set git4win-mirror "https://npm.taobao.org/mirrors/git-for-windows"npm set gl-binary-host-mirror "https://npm.taobao.org/mirrors/gl/v{version}"npm set grpc-node-binary-host-mirror "https://npm.taobao.org/mirrors"npm set hackrf-binary-host-mirror "https://npm.taobao.org/mirrors/hackrf/v{version}"npm set leveldown-binary-host-mirror "https://npm.taobao.org/mirrors/leveldown/v{version}"npm set leveldown-hyper-binary-host-mirror "https://npm.taobao.org/mirrors/leveldown-hyper/v{version}"npm set mknod-binary-host-mirror "https://npm.taobao.org/mirrors/mknod/v{version}"npm set node-sqlite3-binary-host-mirror "https://npm.taobao.org/mirrors"npm set node-tk5-binary-host-mirror "https://npm.taobao.org/mirrors/node-tk5/v{version}"npm set nodegit-binary-host-mirror "https://npm.taobao.org/mirrors/nodegit/v{version}/"npm set operadriver-cdnurl "https://npm.taobao.org/mirrors/operadriver"npm set phantomjs-cdnurl "https://npm.taobao.org/mirrors/phantomjs"npm set profiler-binary-host-mirror "https://npm.taobao.org/mirrors/node-inspector/"npm set puppeteer-download-host "https://npm.taobao.org/mirrors"npm set python-mirror "https://npm.taobao.org/mirrors/python"npm set rabin-binary-host-mirror "https://npm.taobao.org/mirrors/rabin/v{version}"npm set sass-binary-site "https://npm.taobao.org/mirrors/node-sass"npm set sodium-prebuilt-binary-host-mirror "https://npm.taobao.org/mirrors/sodium-prebuilt/v{version}"npm set sqlite3-binary-site "https://npm.taobao.org/mirrors/sqlite3"npm set utf-8-validate-binary-host-mirror "https://npm.taobao.org/mirrors/utf-8-validate/v{version}"npm set utp-native-binary-host-mirror "https://npm.taobao.org/mirrors/utp-native/v{version}"npm set zmq-prebuilt-binary-host-mirror "https://npm.taobao.org/mirrors/zmq-prebuilt/v{version}"npm cache clean --force # clean npm cache# ==========================================================# YARN# ==========================================================yarn config set registry "https://registry.npm.taobao.org"yarn config set disturl "https://npm.taobao.org/dist"yarn config set chromedriver-cdnurl "https://npm.taobao.org/mirrors/chromedriver"yarn config set couchbase-binary-host-mirror "https://npm.taobao.org/mirrors/couchbase/v{version}"yarn config set debug-binary-host-mirror "https://npm.taobao.org/mirrors/node-inspector"yarn config set electron-mirror "https://npm.taobao.org/mirrors/electron/"yarn config set flow-bin-binary-host-mirror "https://npm.taobao.org/mirrors/flow/v"yarn config set fse-binary-host-mirror "https://npm.taobao.org/mirrors/fsevents"yarn config set fuse-bindings-binary-host-mirror "https://npm.taobao.org/mirrors/fuse-bindings/v{version}"yarn config set git4win-mirror "https://npm.taobao.org/mirrors/git-for-windows"yarn config set gl-binary-host-mirror "https://npm.taobao.org/mirrors/gl/v{version}"yarn config set grpc-node-binary-host-mirror "https://npm.taobao.org/mirrors"yarn config set hackrf-binary-host-mirror "https://npm.taobao.org/mirrors/hackrf/v{version}"yarn config set leveldown-binary-host-mirror "https://npm.taobao.org/mirrors/leveldown/v{version}"yarn config set leveldown-hyper-binary-host-mirror "https://npm.taobao.org/mirrors/leveldown-hyper/v{version}"yarn config set mknod-binary-host-mirror "https://npm.taobao.org/mirrors/mknod/v{version}"yarn config set node-sqlite3-binary-host-mirror "https://npm.taobao.org/mirrors"yarn config set node-tk5-binary-host-mirror "https://npm.taobao.org/mirrors/node-tk5/v{version}"yarn config set nodegit-binary-host-mirror "https://npm.taobao.org/mirrors/nodegit/v{version}/"yarn config set operadriver-cdnurl "https://npm.taobao.org/mirrors/operadriver"yarn config set phantomjs-cdnurl "https://npm.taobao.org/mirrors/phantomjs"yarn config set profiler-binary-host-mirror "https://npm.taobao.org/mirrors/node-inspector/"yarn config set puppeteer-download-host "https://npm.taobao.org/mirrors"yarn config set python-mirror "https://npm.taobao.org/mirrors/python"yarn config set rabin-binary-host-mirror "https://npm.taobao.org/mirrors/rabin/v{version}"yarn config set sass-binary-site "https://npm.taobao.org/mirrors/node-sass"yarn config set sodium-prebuilt-binary-host-mirror "https://npm.taobao.org/mirrors/sodium-prebuilt/v{version}"yarn config set sqlite3-binary-site "https://npm.taobao.org/mirrors/sqlite3"yarn config set utf-8-validate-binary-host-mirror "https://npm.taobao.org/mirrors/utf-8-validate/v{version}"yarn config set utp-native-binary-host-mirror "https://npm.taobao.org/mirrors/utp-native/v{version}"yarn config set zmq-prebuilt-binary-host-mirror "https://npm.taobao.org/mirrors/zmq-prebuilt/v{version}"yarn cache clean # clean yarn cache
