Skip to content

Instantly share code, notes, and snippets.

@fanyang89
Last active February 22, 2022 03:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fanyang89/0a49cb81893c0e0e492fdf7c634916a6 to your computer and use it in GitHub Desktop.
Save fanyang89/0a49cb81893c0e0e492fdf7c634916a6 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/dist # node-gyp 编译依赖的 node 源码镜像
npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass # node-sass 二进制包镜像
npm config set electron_mirror https://npmmirror.com/mirrors/electron/ # electron 二进制包镜像
npm config set puppeteer_download_host https://npmmirror.com/mirrors # puppeteer 二进制包镜像
npm config set chromedriver_cdnurl https://npmmirror.com/mirrors/chromedriver # chromedriver 二进制包镜像
npm config set operadriver_cdnurl https://npmmirror.com/mirrors/operadriver # operadriver 二进制包镜像
npm config set phantomjs_cdnurl https://npmmirror.com/mirrors/phantomjs # phantomjs 二进制包镜像
npm config set selenium_cdnurl https://npmmirror.com/mirrors/selenium # selenium 二进制包镜像
npm config set node_inspector_cdnurl https://npmmirror.com/mirrors/node-inspector # node-inspector 二进制包镜像
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment