Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Last active April 29, 2020 18:54
Show Gist options
  • Save sandrabosk/8ed57cb542f221026df2b53475431f68 to your computer and use it in GitHub Desktop.
Save sandrabosk/8ed57cb542f221026df2b53475431f68 to your computer and use it in GitHub Desktop.

[WIN] Install nvm

nvm is a terminal command that allows you to install and switch between different versions of Node.js. Usually, your system can have only one version of Node.js installed at one time. With nvm, you can switch to a newer version, try some new features, and then back to an older version for your more serious projects.

  1. Check if nvm and was installed:
$ nvm --version
# 0.32.1 (current, but in the time you check might be different)

If nvm is not installed, proceed to the next step:

  1. To install nvm, run these commands one by one in your terminal (without the $):
$ mkdir ~/.nvm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | zsh

Close your terminal window and reopen it by launching the Ubuntu app.

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