How to Install NVM?

Open a terminal

Run the NVM install command:

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

Or use wget:

`wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`

Close and reopen the terminal

Load NVM into the current shell:

`source ~/.bashrc`

`source ~/.zshrc`

`source ~/.profile`

Verify installation:

`nvm –version`

Install a Node.js version:

`nvm install node`

Set a default Node.js version:

`nvm alias default node`

Suggested for You

Trending Today