Skip to content

Instantly share code, notes, and snippets.

@malash
Last active October 15, 2015 16:16
Show Gist options
  • Save malash/ea6aa3f073ded802b900 to your computer and use it in GitHub Desktop.
Save malash/ea6aa3f073ded802b900 to your computer and use it in GitHub Desktop.
NVM in GFW
git clone https://github.com/creationix/nvm.git ~/.nvm
cd ~/.nvm
git checkout `git describe --abbrev=0 --tags`
sed -i '/nvm/d' ~/.bashrc
echo ". ~/.nvm/nvm.sh" >> ~/.bashrc
source ~/.bashrc
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
export NVM_IOJS_ORG_MIRROR=https://npm.taobao.org/mirrors/iojs
nvm install v0.12.7
nvm alias default v0.12.7
npm install --registry=https://registry.npm.taobao.org node-gyp-install -g
node-gyp-install
npm install --registry=https://registry.npm.taobao.org -g npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment