DEV Community

Brent Vanwildemeersch
Brent Vanwildemeersch

Posted on • Edited on

1 1

How to set default NVM version for all Linux shells

After installing NVM and setting up a nvm version using:

nvm use ${NODE_VERSION_NUMBER}
Enter fullscreen mode Exit fullscreen mode

I realized that not every shell I started had the NODE_VERSION_NUMBER that I had set earlier

Setting a default node version using NVM on Linux for all shells/terminals can be done using the following command.

nvm alias default ${NODE_VERSION_NUMBER}
Enter fullscreen mode Exit fullscreen mode

Restarting the terminall/shell will now have the correct NODE_VERSION_NUMBER set for NVM

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay