Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Last active August 17, 2018 00:44
Show Gist options
  • Save ThaddeusJiang/8ccec63f72da535b942c8c5e4a8207d9 to your computer and use it in GitHub Desktop.
Save ThaddeusJiang/8ccec63f72da535b942c8c5e4a8207d9 to your computer and use it in GitHub Desktop.
install nvm (node version manager)
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

// 手动添加到 ~/.bash_profile
export NVM_DIR="$HOME/.nvm" 
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
command -v nvm
nvm install --lts
nvm uninstall --lts

nvm use --lts

// install stable
nvm install stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment