Skip to content

Instantly share code, notes, and snippets.

@juliends
Last active November 9, 2020 19:25
Show Gist options
  • Save juliends/dfb62767473b480a20ba3e479104e2c4 to your computer and use it in GitHub Desktop.
Save juliends/dfb62767473b480a20ba3e479104e2c4 to your computer and use it in GitHub Desktop.
Install of NVM (Node version manager) for Ubuntu users

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

restart terminal

nvm install 14.15

If NVM is not found see the last section of this gist

nvm alias default 14.15

restart terminal

node -v

=> 14.15 should be displayed

--

If NVM was not foud you will need to add it to your zshrc profile. Run this to open it.

code ~/.zshrc

Add those lines to the end of the file:

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

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