Skip to content

Instantly share code, notes, and snippets.

@adlerdias
Last active January 4, 2019 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 adlerdias/17921fbd00dbcf8baa8f79c81dcb8552 to your computer and use it in GitHub Desktop.
Save adlerdias/17921fbd00dbcf8baa8f79c81dcb8552 to your computer and use it in GitHub Desktop.
Ubuntu 18.04: Node with NVM

1 Install nvm

$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

2 Only if using ZSH

$ echo 'export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
' >> ~/.zshrc
$ source ~/.zshrc

3 Only if using BASH

$ source ~/.bashrc

4 Install Node

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