Installing nodejs on macOS Apple Silicon (M1) with zsh

TiShow
2 min readMar 15, 2021

Some developer tools are not yet available on M1 mac.
It was necessary to devise to build the Node.js environment. It seems safe to make with Rosetta until it supports M1. You can install homebrew as well.

Go to finder and find Terminal there.

See the information and check “Open using Rosetta”. Rosetta allows Mac with Apple Silicone(M1) to use apps developed for Mac with Intel processors.

Installation nvm

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

See more details https://github.com/nvm-sh/nvm#installing-and-updating

After running above, add the following line to your .zshrc:

source ~/.nvm/nvm.sh

Installation node js

nvm install v15

I think that you can now install node.js.

If everything works correctly these steps will compile everything, node is correctly installed inside the ~/.nvm directory. You shall test it with this command.

node --version

You will probably need to close and re-open your terminal for the command to be found if it did not work.

You probably want to clear the nvm cache to reduce clutter.

nvm cache clear

Hopefully, it would be happy for me if this note could help someone else.

--

--

TiShow

80% is the creation, the rest is depression. Developer and Data scientist. Looking for Physics Ph.D Twitter: @_t_i_show