Skip to content
Learn with RV – Tech Blog
Learn with RV – Tech Blog

#testautomation #qa #programming #linux #devops

  • Home
  • Who am I?
  • 1-on-1 Mentoring
  • Test Automation Incubator
  • 24 Testimonials
  • YouTube
  • LinkedIn
  • Contact
Learn with RV – Tech Blog

#testautomation #qa #programming #linux #devops

December 5, 2023October 2, 2025

Node Version Manager – NVM Guide

I recently started working on two projects that require different NodeJS versions, hence I found an elegant solution – NVM (a.k.a node version manager), a tool that helps you effectively manage your node versions for each project.

NVM allows you to install multiple versions of Node and switch between them depending on the project that you’re working on.

Installing NVM on Windows

  1. NVM does not support windows, but no worries, there is a similar tool, called nvm-windows. It can be accessed here 

    https://github.com/coreybutler/nvm-windows
  2.  Click on “Download Now!” button

3. Click and install the latest release .exe file

3. Open the downloaded .exe file and complete the installation wizzard.

Note: Open up a CLI (cmd, powershell, git bash, etc) and run ‘nvm -v‘. If it was installed correctly, the nvm version should be displayed.

Installing NVM on Linux/MacOS

Open up a terminal and run one of the following commands

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

or

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

Note: Running either of these commands will download and install nvm on your device under ~/.nvm directory and attempts to add the source lines from the snippet below to the correct profile file (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc)

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

How to use NVM? - Cheatsheet

With NVM you can install, uninstall or switch between different NodeJS versions on your device,
depending on your needs.
- nvm install stable installs the latest stable NodeJS version
- nvm ls lists locally installed versions of node
- nvm install YOUR_VERSION (e.g. nvm install 18.19.0) installs specific NodeJS version
- nvm use YOUR_VERSION (e.g. nvm use 18.19.0) switch and use specific NodeJS version

- nvm alias default 18.16.1 sets default version of NodeJS

NodeJS previous release versions – HERE

Enjoyed this article? Make sure to subscribe to my YouTube Channel for more Test Automation tutorials, and follow me on LinkedIn and Twitter for regular insights.
Looking to improve your test automation skills?
I’ve created a personalized 1-on-1 Mentoring program refined to boost YOUR skills. Reach out at iamrv@razvanvancea.ro for more details and together will create a learning path adapted to your current skills and goals that you are aiming for, in a timely-efficient manner🚀

Post Views: 465

Related

Share this article:
Tools

Post navigation

Previous post
Next post

Recent Posts

  • Using npm –prefix to Run Scripts from a Nested package.json
  • Unit Testing in JavaScript: Getting started with Vitest
  • Fail Fast in Playwright with maxFailures
  • Cleaner asserts in Grafana k6 load tests using expect
  • AI: What Happens When an AI’s Context Window Gets Full?

Recent Comments

  1. Paul on Web Accessibility: A step-by-step guide to Testing with pa11y
  2. Automated Tests for website Accessibility with Axe and TestCafe - Learn with RV - Tech Blog on How to generate E2E TestCafe Framework in seconds
  3. RV on Exploring Faker.js: A Powerful Tool for Generating Realistic Random Test Data
  4. Adrian Maciuc on Exploring Faker.js: A Powerful Tool for Generating Realistic Random Test Data
  5. Nick on Cypress vs Playwright vs Testcafe – which framework is faster?

Archives

  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • March 2025
  • February 2025
  • January 2025
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023

Categories

  • AI
  • k6
  • Linux
  • Programming
  • QA
  • Tools
  • Uncategorized
©2026 Learn with RV – Tech Blog | WordPress Theme by SuperbThemes