Macbook
Photo from Aleksander Vlad

How to Install NVM and Node on macOS M1 Silicon in 2022

Get NVM and Node quickly and easily.

Ben Scheer
3 min readJan 28, 2022

--

If you’re a software engineer with a Mac, having NVM and Node installed is likely a requirement. In 2022, it’s easier than ever to get this all installed and check it off your to-do list.

There are a ton of articles out there about installing NVM and Node, however, many of them are a bit outdated or not detailed enough. To address those gaps, this article makes it easy to get NVM and Node on a new Mac. Let’s dive in!

Step 1: Get NVM

Open a new terminal window. Run the following command to see if you already have a .zshrc profile or not:

ls -a

If you see .zshrc in the list, skip this step. Otherwise, if you don’t see it, that means you don’t have it, and you need to create one by running this command:

touch .zshrc

Now you definitely have a .zshrc profile, which means you can get NVM. Visit this site to find the NVM cURL install command under the section called Install & Update Script. The command looks similar to this:

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

--

--