Last active
October 15, 2015 16:16
-
-
Save malash/ea6aa3f073ded802b900 to your computer and use it in GitHub Desktop.
NVM in GFW
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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