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

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
How to install NVM on a Windows machine for getting started with Node JS? - LambdaTest Community
How to install NVM on a Windows machine for getting started with Node JS? More on community.lambdatest.com
🌐 community.lambdatest.com
0
December 24, 2022
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 8, 2022
🌐
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.
🌐
Linode
linode.com › docs › guides › how-to-install-use-node-version-manager-nvm
How to Install and Use NVM (Node Version Manager) | Linode Docs
November 29, 2023 - Learn to use NVM to install Node.js on your computer. This guide shows you how to install and use NVM and how to install the LTS version of Node.js.
🌐
GitHub
github.com › 1111mp › nvm-desktop
GitHub - 1111mp/nvm-desktop: Node Version Manager Desktop - A desktop application to manage multiple active node.js versions.
nvm-desktop is a desktop application that helps you manage multiple Node.js versions through a visual interface. The application is built using Tauri and supports macOS, Windows, and Linux systems.
Starred by 1.3K users
Forked by 64 users
Languages   TypeScript 61.3% | Rust 28.4% | CSS 6.8% | JavaScript 3.3%
Find elsewhere
🌐
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.

🌐
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.
🌐
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.
🌐
Node.js
nodejs.org › en
Node.js
Get Node.js®Get Node.js®Get security support for EOL Node.js versions
🌐
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.
🌐
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!
🌐
DEV Community
dev.to › mesonu › how-to-install-nvmnode-version-manager-on-windows-2ij1
How to install NVM(Node Version Manager) on Windows - DEV Community
June 25, 2024 - Install the .exe file: Once you are redirected to the release page (currently version 1.1.12) click on nvm-setup.exe and it downloads the nvm-windows on your machine. Run the installer: Open the downloaded file and follow the prompts to complete the installation wizard. Verify the installation: After installation, open a command prompt and run: ... If everything is installed correctly, this command will display the installed NVM version. ... If you want to select a specific version of the node.js that version is in the above list (screenshot image).
🌐
asdf
asdf-vm.com
asdf
Manage all your runtime versions with one tool! ... Manage each of your project runtimes with a single CLI tool and command interface. ... Large ecosystem of existing runtimes & tools. Simple API to add support for new tools as you need! ... Support for existing config files .nvmrc, .node-version, .ruby-version for smooth migration!
🌐
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
NVM - Node.js Version Manager tool - NVM Documentation
NVM is a tool for managing multiple versions of Node.js, Official documentation for NVM (Node Version Manager) for Windows, Linux, and macOS
🌐
XDA Developers
xda-developers.com › home › windows › windows guides › how to install and use nvm on windows
How to install and use NVM on Windows
November 27, 2024 - Well, that's what NVM (Node version manager) is for. Officially, NVM isn't available for Windows 11 (or any Windows version), but there is an unofficial project called NVM for Windows which works just as well.