Skip to content

Instantly share code, notes, and snippets.

@hongjonghwa
Last active August 15, 2022 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hongjonghwa/0c831b642187d7b5bd306b3da6a6b96d to your computer and use it in GitHub Desktop.
Save hongjonghwa/0c831b642187d7b5bd306b3da6a6b96d to your computer and use it in GitHub Desktop.
# 1) nvm install
git clone https://github.com/nvm-sh/nvm.git ~/.nvm
# 2) add these lines to ~/.bashrc, ~/.profile, or ~/.zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# 3) install nodejs
nvm install --lts=fermium # node v14 lts
# 4) yarn classic ( node ver < 16.9)
npm install --global yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment