DEV Community

theBridge2
theBridge2

Posted on

NodeJS Backend tools - Node Version Manager (NVM)

Here is a very basic page on NVM. If you don't know what NVM is and you use nodeJS, you should know!

NVM

Node version manager is very powerful allowing you to easily install and switch back and forth between different node versions.

Install nvm per instructions.
https://github.com/nvm-sh/nvm

(I used their curl command to download script and run)

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
Enter fullscreen mode Exit fullscreen mode

Node install with nvm:

  • node -v. # is v20.10.0 at this point.
  • nvm install 16 #installs node v16 and switches to it.
  • node -v # now equals v16.20.2.

To switch:

  • nvm use 20 # (may need to install 20 with nvm for it to be able to use it)

Top comments (0)