Skip to content

Instantly share code, notes, and snippets.

@dexteryy
Created July 13, 2016 09:32
Show Gist options
  • Save dexteryy/f727a34c8cef7b0f99cd7dd4858236e2 to your computer and use it in GitHub Desktop.
Save dexteryy/f727a34c8cef7b0f99cd7dd4858236e2 to your computer and use it in GitHub Desktop.
export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node
export SASS_BINARY_SITE="https://npm.taobao.org/mirrors/node-sass"
export PHANTOMJS_CDNURL=http://npm.taobao.org/mirrors/phantomjs
export ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
export CHROMEDRIVER_CDNURL=http://npm.taobao.org/mirrors/chromedriver
export SELENIUM_CDNURL=http://npm.taobao.org/mirrorss/selenium
alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment