Installing Node with NVM on MacOS | Task

Ole Ersoy
Apr - 10  -  1 min

Scenario

We wish to install Node on MacOS using NVM.

Approach

Open the Github link to the NVM. Currently the script statement that installs NVM looks like this:

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

When the command is run, macOS will prompt for an install of Apple Developer Tools.

You may want to install brew and install git with brew first, otherwise Apple Git will be installed.

After it is installed, check the version:

nvm --version

To install node run nvm install node.

To install a specific version:

nvm install 6.14.4 # or 10.10.0, 8.9.1, etc

For more use cases see the README.md.