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
🌐
4Geeks
4geeks.com › how-to › nvm-install-windows
How to install NVM on Windows
July 16, 2025 - To manage these requirements efficiently, we strongly recommend installing Node Version Manager (NVM) instead of directly installing Node.js. NVM allows you to switch between Node versions seamlessly, ensuring that each project has the right environment to run effectively. For those interested in optimizing their development setup further, we have an article detailing the best local development practices to help you avoid common issues in the future. 📝 This guide is for Windows users only, follow these links if you want to install NVM on MacOS or install NVM on linux.
🌐
GitHub
github.com › coreybutler › nvm-windows
GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go.
For example, if you want to test ... way to get NVM for Windows running properly is to uninstall any prior Node installation before installing NVM for Windows....
Starred by 44K users
Forked by 3.7K users
Languages   Go 72.3% | Inno Setup 25.9%
Discussions

How to install nvm in windows - Stack Overflow
I have already installed node but I need to downgrade versions and I was thinking on using nvm. I am trying to install nvm in windows with the following command on my cmd with admin rights: curl -o- More on stackoverflow.com
🌐 stackoverflow.com
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
nvm-windows install troubleshooting
Use FNM instead of NVM, FNM is cross platform. https://github.com/Schniz/fnm More on reddit.com
🌐 r/node
7
0
June 29, 2025
Should i use nvm-windows
Use nvm in WSL! More on reddit.com
🌐 r/node
17
7
May 30, 2025
🌐
freeCodeCamp
freecodecamp.org › news › node-version-manager-nvm-install-guide
Node Version Manager – NVM Install Guide
September 9, 2022 - Before proceeding, I also recommend that you uninstall Node.js if you have it installed already so that you do not have any conflicts with Node.js and nvm. NVM is mostly supported on Linux and Mac. It doesn't have support for Windows.
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › dev-environment › javascript › nodejs-on-windows
Set up Node.js on native Windows | Microsoft Learn
The installer will point you to the releases page for the most recent version. Download the nvm-setup.zip file for the most recent release. Once downloaded, open the zip file, then open the nvm-setup.exe file.
🌐
Webucator
webucator.com › catalog › web development › javascript
A Step-by-Step Guide to Installing nvm-windows for Node.js Management | Webucator
Once the installation is complete, restart your command prompt or terminal for the changes to take effect. To verify that nvm-windows is installed, open a new command prompt or terminal and type nvm version.
Find elsewhere
🌐
GitHub
github.com › coreybutler › nvm-windows › releases
Releases · coreybutler/nvm-windows
If you do not have NVM for Windows installed Use the instructions in the README.
Author   coreybutler
🌐
OpenReplay
blog.openreplay.com › install-nvm-windows
How to Install NVM in Windows
February 8, 2025 - A Windows machine running Windows 10 or higher. Administrator access to install programs. No existing Node.js installation (uninstall if already installed). Visit the official nvm-windows GitHub page.
🌐
RealWorldDev
realworlddev.hashnode.dev › installing-nvm-on-windows-11
How to Install NVM on Windows 11
March 2, 2022 - Now when I go back to my terminal from earlier, I list my versions of node installed, enter which version to switch to and verify just to make sure: So what happens when you get to work on another project and lets pretend it's a legacy project from a few years back. You clone the latest code from your repository and a previous developer has kindly stated in the ReadMe file that you need Node version 12.13.1 to be able to serve the application. Now you have NVM Windows installed, this is nice and easy using 'nvm install' and 'nvm use':
🌐
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.

🌐
Refine
refine.dev › blog › install-nvm-mac-and-windows
How to Install and Use NVM? | Refine
July 5, 2024 - You can download the latest release of the NVM Windows here. To view all releases of the NVM Windows, you can see it here. For more instructions on how to install the NVM Windows, upgrade, and more, visit their Github repo page.
🌐
Whatthetechjimmy
whatthetechjimmy.com › home › blog › how to install nvm for windows
How to install NVM for Windows » What the Tech Jimmy!?
September 15, 2021 - This post is a guide for how I install and use NVM on Windows with multiple user accounts and resolve common installation errors.
🌐
Radixweb
radixweb.com › blog › guide-to-install-nvm-on-windows-linux-and-mac
Guide to Install NVM (Node Version Manager) on Different OS
October 17, 2024 - Are you struggling to switch between different versions of Node? This user guide will help you install NVM on Windows, Linux, and Mac to switch Node environments easily.
🌐
Nvmnode
nvmnode.com › guide › download.html
Download NVM For Windows, Linux, and macOS - NVM Documentation
After downloading NVM for Windows, proceed to the Windows installation guide for step-by-step instructions.
🌐
Reddit
reddit.com › r/node › nvm-windows install troubleshooting
r/node on Reddit: nvm-windows install troubleshooting
June 29, 2025 -

Complete amateur here, just starting out with node today. I am on W11 and have used WSL before for some computational stuff. However, I had not thought to use WSL for installing node until reading some posts on here. Currently working with nvm-windows (version 1.2.2) as a result.

Mods, if this is not the right place to post this, I apologize. Just wanted to write here in case someone has an issue similar to what I had when trying to run nvm-windows.

Most of you probably would have seen this instantly, and in hindsight, I should have caught this sooner...

But when choosing a custom path for installing NVM HOME, etc. don't forget to add the backslash () at the end of your file path. I was unable to run the "nvm" command in powershell because of this mistake. Lol. For some reason, when I checked the file path, it didn't have the final backslash by default.

🌐
Reddit
reddit.com › r/node › should i use nvm-windows
r/node on Reddit: Should i use nvm-windows
May 30, 2025 -

I only recently started using nodejs. I installed it with an installer which i probably shouldn’t do and use version manager instead. Idk yet if i will work on different versions until the point i will do fresh windows install (in 2 months). If i don’t really need to switch node versions (idk yet) can i stay with my current installation? Which version manager should i use (nvm-windows seems to be recommended)? Is just running uninstaller enough to clean thing up enough for version manager or should i do manual cleanup or 3rdparty uninstaller(like revo), and if needed what folders should i delete. Also should i use LTS or latest in most cases(assuming i don’t really need newer features).

OS: windows 10 and i will move to windows 11 in few months

🌐
LogRocket
blog.logrocket.com › home › how to install and use nvm
How to install and use NVM - LogRocket Blog
March 10, 2025 - Before installing any Node.js versions, it’s helpful to see what’s available. You can do this by using the following command: nvm ls-remote # On Unix systems nvm list available # On Windows ( nvm-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
If you're running a system without prepackaged binary available, which means you're going to install node or io.js from its source code, you need to make sure your system has a C++ compiler. For OS X, Xcode will work, for Debian/Ubuntu based GNU/Linux, the build-essential and libssl-dev packages work. Note: nvm also supports Windows in some cases.
Starred by 90.3K users
Forked by 9.7K users
Languages   Shell 98.0% | Makefile 1.2%
🌐
npm
docs.npmjs.com › downloading-and-installing-node-js-and-npm
Downloading and installing Node.js and npm | npm Docs
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. Be sure to install the version labeled LTS.
🌐
Node.js
nodejs.org › en › download
Node.js — Download Node.js®
Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.