Skip to content

Instantly share code, notes, and snippets.

@connself
Created March 12, 2022 06:41
Show Gist options
  • Save connself/88ea9e27725bdde8e165f0a648bdf708 to your computer and use it in GitHub Desktop.
Save connself/88ea9e27725bdde8e165f0a648bdf708 to your computer and use it in GitHub Desktop.

npm

npm config set registry https://registry.npmmirror.com
npm config set disturl https://npmmirror.com/mirrors/node
npm config set electron_mirror https://registry.npmmirror.com/electron/
npm config set chromedriver_cdnurl https://registry.npmmirror.com/chromedriver/
npm config set sass_binary_site https://registry.npmmirror.com/node-sass/
npm config set phantomjs_cdnurl https://registry.npmmirror.com/phantomjs/
npm config set puppeteer_download_host https://registry.npmmirror.com/mirrors/
npm config set selenium_cdnurl https://registry.npmmirror.com/selenium/
npm config set node_inspector_cdnurl https://registry.npmmirror.com/node-inspector/

yarn

yarn config set registry https://registry.npmmirror.com -g
yarn config set disturl https://npmmirror.com/mirrors/node -g
yarn config set electron_mirror https://registry.npmmirror.com/electron/ -g
yarn config set sass_binary_site https://registry.npmmirror.com/node-sass/ -g
yarn config set phantomjs_cdnurl https://registry.npmmirror.com/phantomjs/ -g
yarn config set puppeteer_download_host https://registry.npmmirror.com/mirrors/ --gl
yarn config set chromedriver_cdnurl https://registry.npmmirror.com/chromedriver/ -g
yarn config set operadriver_cdnurl https://registry.npmmirror.com/operadriver/ -g
yarn config set fse_binary_host_mirror https://registry.npmmirror.com/fsevents/ -g
yarn config set selenium_cdnurl https://registry.npmmirror.com/selenium/ --g
yarn config set node_inspector_cdnurl https://registry.npmmirror.com/node-inspector/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment