DEV Community

Shaundai Person
Shaundai Person

Posted on • Edited on

1

How to switch to using new version of node using nvm

If you want to switch to a new version of node temporarily, use the command
nvm use [version]

where version is the version number. For example, to switch to node 18.20.0, your command will be
nvm use 18.20.0

This will switch the node version until you close your IDE, and then it will restore the default version.

If you'd like to change the default node version you're using so that you don't have to continue to change versions every time you re-open your IDE, add the keyword default to the command above like this:
nvm alias default [version]

where version is the version number. For example, to switch to node 18.20.0, your command will be
nvm use default 18.20.0

Top comments (2)

Collapse
 
maroine_bourass profile image
Maroine bourass • Edited

how to install new version with nvm ?

Collapse
 
shaundai profile image
Shaundai Person

Quickstart image

Django MongoDB Backend Quickstart! A Step-by-Step Tutorial

Get up and running with the new Django MongoDB Backend Python library! This tutorial covers creating a Django application, connecting it to MongoDB Atlas, performing CRUD operations, and configuring the Django admin for MongoDB.

Watch full video →

👋 Kindness is contagious

Value this insightful article and join the thriving DEV Community. Developers of every skill level are encouraged to contribute and expand our collective knowledge.

A simple “thank you” can uplift someone’s spirits. Leave your appreciation in the comments!

On DEV, exchanging expertise lightens our path and reinforces our bonds. Enjoyed the read? A quick note of thanks to the author means a lot.

Okay