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
🌐
OpenReplay
blog.openreplay.com › install-nvm-windows
How to Install NVM in Windows
February 8, 2025 - Visit the official nvm-windows GitHub page.
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
How to install nvm for windows 10 and set up for all users - Stack Overflow
install nvm for windows 10: https://github.com/coreybutler/nvm-windows More on stackoverflow.com
🌐 stackoverflow.com
You can manage multiple Node versions with nvm
Pffff, volta is your boy. https://docs.volta.sh/guide/ More on reddit.com
🌐 r/learnjavascript
4
1
February 22, 2023
Ive installed nodejs via nvm-windows but it didnt install npm?
Sometimes you'll also need to setup the proper paths (depending on what kind of windows setup you've got). But in your edit it seems like you're done. More on reddit.com
🌐 r/node
1
1
August 3, 2023
🌐
GitHub
gist.github.com › borymskyi › c7a5e7c346d3b3fcf5fbf0a3d436395a
nvm node.js for Windows · GitHub
Save borymskyi/c7a5e7c346d3b3fcf5fbf0a3d436395a to your computer and use it in GitHub Desktop. Download ZIP · Raw · nvm node.js for Windows · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below.
🌐
GitHub
github.com › rohya8 › NvmInstallation
GitHub - rohya8/NvmInstallation: Node Version Manager (NVM) installation guide on Windows
Node Version Manager (NVM) installation guide on Windows - rohya8/NvmInstallation
Author   rohya8
🌐
SourceForge
sourceforge.net › projects › nvm-for-windows.mirror
NVM for Windows download | SourceForge.net
NVM for Windows
This is an exact mirror of the NVM for Windows project, hosted at https://github.com/coreybutler/nvm-windows. SourceForge is not affiliated with NVM 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 the ability to switch between different versions
Rating: 5 ​
🌐
Nvmnode
nvmnode.com › guide › download.html
Download NVM For Windows, Linux, and macOS - NVM Documentation
The latest stable release of NVM for Windows can be downloaded from the official GitHub repository:
Find elsewhere
🌐
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%
🌐
GitHub
gist.github.com › danpetitt › e87dabb707079e1bfaf797d0f5f798f2
Using nvmrc on Windows · GitHub
Unfortunately nvm use on Windows does not change the node version to that specified in the .nvmrc file as its not supported on nvm for Windows: coreybutler/nvm-windows#388
🌐
GitHub
github.com › topics › nvm-windows
nvm-windows · GitHub Topics · GitHub
You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. ... react rust reactjs nvm version-manager node-version-manager tauri tailwindcss nvm-windows tauri-app tauri-apps tauri-v2
🌐
GitHub
github.com › nvm-sh › nvm
GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
Note: nvm also supports Windows in some cases. It should work through WSL (Windows Subsystem for Linux) depending on the version of WSL. It should also work with GitBash (MSYS) or Cygwin.
Starred by 90.3K users
Forked by 9.7K users
Languages   Shell 98.0% | Makefile 1.2%
🌐
Reddit
reddit.com › r/learnjavascript › you can manage multiple node versions with nvm
r/learnjavascript on Reddit: You can manage multiple Node versions with nvm
February 22, 2023 -

If you're working on multiple projects, some might have different node version requirements. This happens a lot for Open Source contributors! Let's see how to quickly switch between them with a tool called nvm and leverage the .nvmrc file to make it 100% seamless!

It's available on all OS, including Windows, Linux, and MacOS.

Do not get confused though, Windows has its own version, slightly different from the one for Unix systems:

  • Windows: https://github.com/coreybutler/nvm-windows

  • Linux/MacOS: https://github.com/nvm-sh/nvm

In short, they both use nvm as a terminal command, so for basic usage you won't find many differences. For advanced users though, you may notice something. Make sure to read the docs in the README.md file of each repository.

I explain everything in a video, if you're interested you can watch it here: https://youtu.be/A-pbv5eKCDc

Enjoy nvm!

🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › dev-environment › javascript › nodejs-on-windows
Set up Node.js on native Windows | Microsoft Learn
You will likely need to switch ... to install multiple versions of Node.js, but is only available for Mac/Linux and not supported on Windows....
🌐
freeCodeCamp
freecodecamp.org › news › node-version-manager-nvm-install-guide
Node Version Manager – NVM Install Guide
September 9, 2022 - NVM is mostly supported on Linux and Mac. It doesn't have support for Windows.
🌐
Reddit
reddit.com › r/node › ive installed nodejs via nvm-windows but it didnt install npm?
r/node on Reddit: Ive installed nodejs via nvm-windows but it didnt install npm?
August 3, 2023 -

Hi there, ive used this

https://github.com/coreybutler/nvm-windows/releases

and just typed

nvm install --lts

then ill type

npm -v 

and it tells me it couldnt find that command.

Am I doing something wrong?

EDIT:

fixed it with nvm on

🌐
YouTube
m.youtube.com › watch
Installing NVM on Windows for Git Bash
Share your videos with friends, family, and the world
🌐
GitHub
github.com › jchip › nvm
GitHub - jchip/nvm: Unix and Windows nvm - universal node.js version manager
This adds Universal NVM to the system-wide PATH for all users. Requires sudo: ... Note for Windows users: On Windows, the installation script automatically adds both %NVM_HOME%\bin and %NVM_LINK% to your user PATH in the Windows registry. This makes Universal NVM, node, and npm immediately available to all applications (terminal, GUI apps like VS Code, etc.) without needing to run any additional commands.
Starred by 66 users
Forked by 15 users
Languages   JavaScript 83.4% | Shell 8.7% | PowerShell 7.3% | Batchfile 0.6%
🌐
GitHub
github.com › nvm-sh › nvm › releases
Releases · nvm-sh/nvm
add some nvm_do_install tests · a cleaner name for the windows tests · Assets 2 · Loading · There was an error while loading. Please reload this page. 36 people reacted · 25 Jul 01:33 · ljharb · v0.39.4 · This tag was signed with the committer’s verified signature.
Author   nvm-sh