Actually you are trying to perform command of ubuntu/mac on windows.

If you want to install NVM in windows then please refer this step by step guide.

Step by step guide

NVM For Windows

Answer from Dakshesh Baldaniya on Stack Overflow
🌐
GitHub
github.com › coreybutler › nvm-windows
GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go.
A node.js version management utility for Windows. Ironically written in Go. - coreybutler/nvm-windows
Starred by 44K users
Forked by 3.7K users
Languages   Go 72.3% | Inno Setup 25.9%
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › dev-environment › javascript › nodejs-on-windows
Set up Node.js on native Windows | Microsoft Learn
Node Version Manager, more commonly called nvm, is the most popular way to install multiple versions of Node.js, but is only available for Mac/Linux and not supported on Windows. Instead, we recommend installing nvm-windows and then using it ...
Discussions

Node Version Manager
To resolve your NVM issues on Windows, try reinstalling NVM and Node by uninstalling both, then reinstalling NVM for Windows and using it to install the desired Node.js versions. Ensure your environmental variables are correctly set, with paths pointing to the installed Node.js versions managed by NVM, and verify that NVM_HOME and NVM_SYMLINK are correctly configured. Open a new Command Prompt or PowerShell window, run nvm use [desired version], and check the Node.js version to confirm the correct version is active. Use sudo to avoid permission issues, and make sure you're using the latest version of NVM for Windows. More on reddit.com
🌐 r/learnprogramming
11
1
June 16, 2024
The next generation node version manager
Is it compatible with existing .nvmrc files? As in, if someone installed use-node but the project has a .nvmrc, could it read that version from there instead of package.json? More on reddit.com
🌐 r/node
19
41
December 7, 2022
What Version Manager do you use?
🌐 r/node
45
30
April 16, 2021
[How-To] Install Node.js on Windows the Recommended Way
I recently needed to install Node.js on Windows for a project, and after some trial and error, I found that using NVM (Node Version Manager) was the best and easiest way. Here’s exactly how I did it: Steps to Install Node.js with NVM on Windows Download NVM for Windows I started by downloading the nvm-setup.exe file from the official NVM for Windows GitHub page. You can grab it from this link . Install NVM After downloading, I just double-clicked the nvm-setup.exe file and followed the installation wizard’s steps. It’s straightforward and takes only a minute or two. Check NVM Installation To make sure NVM was installed correctly, I opened the Command Prompt (as an admin) and ran: nvm --version If you see the version number appear, you’re good to go! 4. Install Node.js Using NVM Here’s the fun part: you can install any Node.js version using NVM. For the latest LTS (Long-Term Support) version, I typed: nvm install lts NVM automatically downloads and installs the specified version. 5. Switch Between Node.js Versions To check all the installed versions of Node.js, I ran: nvm list And when I wanted to use a specific version, this command worked perfectly: nvm use For example: nvm use 18.16.0 6. Verify Node.js Installation Finally, I made sure everything was working by typing: node --version This confirmed the Node.js version I installed. Extra Tip If you’re looking for more guides on installing tools like Node.js and npm, I found this guide super helpful: How to Install Node.js and npm on Debian 11. It’s written for Debian, but the concepts are easy to adapt to other setups. More on reddit.com
🌐 r/node
3
11
April 4, 2023
🌐
Nvmnode
nvmnode.com › guide › download.html
Download NVM For Windows, Linux, and macOS - NVM Documentation
How to download NVM (Node Version Manager) for Windows, Linux, and macOS. Download Version Node.js related to NVM.
🌐
Reddit
reddit.com › r/learnprogramming › node version manager
r/learnprogramming on Reddit: Node Version Manager
June 16, 2024 -

Hello gang, I am having issues using Node version manager on windows. I have checked my environmental variables, manually added paths via my bash file, and i used the powershell, command prompt, and git bash. NVM commands work fine but node -v and npm -v will not work at all. Incredibly frustrating as i was in the middle of working on AWS services so this is incredibly counter productive. Any advice?

I should add that i was using the latest version of node up until today without any issues. An application or project i was working on necessitated an older version of Node.js. The Windows support article https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows explains in few details additional processes i could take to resolve the issue so i have been relying on information found on the web. I can send photos of my environmental variables although i am very cautious uploading any information regarding my local machine via a subreddit about programmers learning. Unfortunately not all humans live for the betterment of the human race. If anyone has dealt with this problem. let me know a resource i can delve into or how you resolved the issue.

🌐
Node.js
nodejs.org › en › download
Node.js — Download Node.js®
InfoWant new features sooner? Get the latest Node.js version instead and try the latest improvements!
🌐
npm
docs.npmjs.com › downloading-and-installing-node-js-and-npm
Downloading and installing Node.js and npm | npm Docs
If you are unable to use a Node version manager, you can use a Node installer to install both Node.js and npm on your system. ... If you use Linux, we recommend that you use a NodeSource installer. If you're using macOS or Windows, use one of the installers from the Node.js download page.
Find elsewhere
🌐
freeCodeCamp
freecodecamp.org › news › nvm-for-windows-how-to-download-and-install-node-version-manager-in-windows-10
NVM for Windows – How to Download and Install Node Version Manager in Windows 10
August 11, 2022 - NVM, short for Node Version Manager, is a command line tool for managing and switching to different versions of Node.js. In this article, I will show you how to download and install NVM on Windows 10 – even though there’s no “NVM” for ...
🌐
Node-RED
nodered.org › docs › getting-started › windows
Running on Windows : Node-RED
Using a Node.js version manager such as nvm-windows can be very helpful if you are doing Node.js development and need to test against different versions.
🌐
Medium
medium.com › @sabirsafder › how-to-install-nvm-node-version-manager-on-windows-mac-os-46b367448103
How to install NVM (Node Version Manager) on Windows & Mac OS | by Sabir Hussain | Medium
September 3, 2024 - Manually managing these versions can be a nightmare. NVM solves this by allowing you to seamlessly switch between various Node.js versions on your machine, keeping each project’s environment isolated and stable. NVM is mostly supported on Linux and Mac. It doesn’t have support for Windows.
🌐
GitHub
github.com › nvm-sh › nvm
GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
nvm is a version manager for node.js, designed to be installed per-user, and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL.
Starred by 90.4K users
Forked by 9.7K users
Languages   Shell 98.0% | Makefile 1.2%
🌐
freeCodeCamp
freecodecamp.org › news › node-version-manager-nvm-install-guide
Node Version Manager – NVM Install Guide
September 9, 2022 - nvm-windows provides a management utility for managing Node.js versions in Windows.
🌐
SourceForge
sourceforge.net › projects › nvm-for-windows.mirror
NVM for Windows download | SourceForge.net
NVM for Windows
Download NVM for Windows for free. A node.js version management utility for Windows written in Go. Manage multiple installations of node.js on a Windows computer. Similar (not identical) to nvm, but for Windows. Manage multiple installations of node.js on a Windows computer. Similar (not identical) to nvm, but for Windows. This has always been a node version manager, not an io.js manager, so there is no back-support for io.js. However, node 4+ is supported. Remember when running nvm install or nvm use, you must have Windows administrative rights (to create symlinks). There are situations where
Rating: 5 ​
🌐
GitHub
github.com › Schniz › fnm
GitHub - Schniz/fnm: 🚀 Fast and simple Node.js version manager, built in Rust
🚀 Fast and simple Node.js version manager, built in Rust · 🌎 Cross-platform support (macOS, Windows, Linux)
Starred by 22.9K users
Forked by 594 users
Languages   Rust 66.5% | TypeScript 20.7% | JavaScript 8.2% | Shell 4.5% | Batchfile 0.1%
🌐
Codedamn
codedamn.com › news › node.js
How to install NVM – Node Version Manager
June 6, 2023 - NVM is specifically designed for managing Node.js versions. However, there are similar tools for other programming languages, such as RVM for Ruby and pyenv for Python. NVM is compatible with Windows, macOS, and Linux.
🌐
Visual Studio Code
code.visualstudio.com › docs › nodejs › nodejs-tutorial
Node.js tutorial in Visual Studio Code
November 3, 2021 - You'll need to open a new terminal (command prompt) for the node and npm command-line tools to be on your PATH. To test that you have Node.js installed correctly on your computer, open a new terminal and type node --version and you should see ...
🌐
GeeksforGeeks
geeksforgeeks.org › installation guide › how-to-install-and-use-nvm-on-windows
How to Install and Use NVM on Windows - GeeksforGeeks
July 23, 2025 - Learn how to install NVM (Node Version Manager) on Windows 7, 8.1, 10, and 11. Step-by-step guide for managing multiple Node.js versions, switching versions, and troubleshooting errors.
🌐
NodeSource
nodesource.com › blog › Update-nodejs-versions-on-windows
How to Update Node.js Versions on Windows
February 4, 2025 - Find Node.js, click Uninstall, and follow the steps. ... Download the installer from the nvm-windows GitHub releases page. Run the .exe file and follow the setup instructions. ... If installed correctly, it will return the version of nvm-windows. Once nvm-windows is installed, you can easily manage multiple Node.js versions.
🌐
DEV Community
dev.to › kumarprateek18 › seamlessly-manage-nodejs-versions-on-windows-with-nvm-l8f
Seamlessly Manage Node.js Versions on Windows with nvm - DEV Community
August 16, 2024 - As a developer, managing multiple versions of Node.js can be challenging, especially when different projects require different versions. Thankfully, nvm-windows (Node Version Manager for Windows) simplifies this process, allowing you to switch between Node.js versions effortlessly without the need for tedious installations or uninstallations.
🌐
DEV Community
dev.to › samirabawad › how-to-install-nodejs-npm-and-nvm-on-windows-node-version-manager-9j9
How to install Node.js, NPM and NVM on Windows (node version manager) - DEV Community
August 29, 2024 - During installation, leave all the default options, since NVM has an update tool that will allow us to easily manage versions. 5.Verify NVM installation: Once installed, open a new terminal and verify that NVM is correctly installed by running: nvm · 6.Install a version of Node.js: NVM allows you to install specific versions of Node.js or the latest version.