Skip to content

Instantly share code, notes, and snippets.

@bipin-nag
Created September 17, 2021 00:54
Show Gist options
  • Save bipin-nag/0643fca44fd66e457442fd404a24813b to your computer and use it in GitHub Desktop.
Save bipin-nag/0643fca44fd66e457442fd404a24813b to your computer and use it in GitHub Desktop.
Node.js setup
#!/bin/bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
echo '
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
'>> ~/.zshrc
nvm ls-remote --lts | grep Latest
nvm install --lts=Erbium
nvm install --lts=Fermium
nvm install-latest-npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment