DEV Community

daud99
daud99

Posted on • Edited on

7 4

Install NVM/Node on MAC OS

1- Install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Enter fullscreen mode Exit fullscreen mode

2- Installing brew to environment

echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

3- Now, close the terminal and open a new terminal.

4- Installing NVM,

brew install nvm
Enter fullscreen mode Exit fullscreen mode

5- Installing latest node version

nvm install node
Enter fullscreen mode Exit fullscreen mode

6-Installing specific node version say 16.15.0

nvm install 16.15.0
Enter fullscreen mode Exit fullscreen mode

7- Listing all the install node versions

nvm list
Enter fullscreen mode Exit fullscreen mode

8- Switching to specific node version

nvm use 16.15.0
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video