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 OverflowGitHub
github.com โบ nvm-sh โบ nvm
GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
Eg: curl ... | NVM_DIR="path/to/nvm". Ensure that the NVM_DIR does not contain a trailing slash. The installer can use git, curl, or wget to download nvm, whichever is available.
Starred by 90.3K users
Forked by 9.7K users
Languages ย Shell 98.0% | Makefile 1.2%
How to install Node Version Manager (NVM) for Windows 10?
I think you are mixing up node and npm a lot.
nvm use <version> uses <version> of node, not npm for example.
Also if somebody doesn't know how to extract and install a zipped windows setup, maybe its too soon to use nvm or node on Windows?
More on reddit.comStep-by-Step User Guide to install NVM (Node Version Manager) on Windows 10
I tried nvm on Win10 some time back and it got really meesed up with just 2 versions. Packages installed with npm couldn't be accessed properly. Had to uninstall it completely and go back to using a single version of node. Nvm works almost flawless on Linux btw. More on reddit.com
Do you use nvm?
Seems useful, but I plan to stick with nvm for most day-to-day stuff. Why? Because if I'm switching versions in nvm it's probably because I'm going to use lots of commands, for a while (hours/days), that all need to use that version. Using npx for this would work best if you've got one or two things to do in that version. More on reddit.com
How to Install NVM on Linux or Ubuntu?
Why would I read an article when the instructions on how to do this is in the NVM documentation?
More on reddit.comVideos
09:09
How to Install and Use NVM (Node Version Manager) on Windows (NVM ...
06:02
how to install nvm in windows 11 - YouTube
12:04
How to Install and Use NVM (Node Version Manager) on Mac & Linux ...
05:12
How to install Node.js with NVM - YouTube
09:09
How to Install and Use NVM (Node Version Manager) on ...
Microsoft Learn
learn.microsoft.com โบ en-us โบ windows โบ dev-environment โบ javascript โบ nodejs-on-windows
Set up Node.js on native Windows | Microsoft Learn
Besides choosing whether to install on Windows or WSL, there are additional choices to make when installing Node.js. We recommend using a version manager as versions change very quickly. You will likely need to switch between multiple Node.js versions based on the needs of different projects you're working on. 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.
Nvmnode
nvmnode.com
NVM - Node.js Version Manager tool - NVM Documentation
Whether you need to test your application across different Node.js versions or work on projects with specific version requirements, NVM makes it simple to switch between environments. Avoid version conflicts between different projects ยท Test compatibility across multiple Node.js versions ... # Install a specific Node.js version nvm install 18.16.0 # Use the installed version nvm use 18.16.0 # Set a default version nvm alias default 18.16.0
GitHub
github.com โบ coreybutler โบ nvm-windows
GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go.
The simplest (recommended) way to get NVM for Windows running properly is to uninstall any prior Node installation before installing NVM for Windows. It avoids all of the pitfalls listed below. However; you may not wish to nuke your Node installation if you've highly customized it.
Starred by 44K users
Forked by 3.7K users
Languages ย Go 72.3% | Inno Setup 25.9%
SitePoint
sitepoint.com โบ blog โบ javascript โบ installing multiple versions of node.js using nvm
Installing Multiple Versions of Node.js Using nvm โ SitePoint
March 3, 2025 - Cross-Platform Support: While nvm primarily caters to Linux and macOS, Windows users arenโt left out thanks to nvm-windows, a separate but functionally similar tool designed to manage Node environments on Windows systems. Installation and Usage Flexibility: nvm provides a seamless installation process across different operating systems and offers straightforward commands for installing, listing, and switching between Node versions, significantly reducing the complexity associated with version management.
Codedamn
codedamn.com โบ news โบ node.js
How to install NVM โ Node Version Manager
June 6, 2023 - In this blog post, we will discuss how to install and use NVM (Node Version Manager) on various operating systems. NVM is a handy tool that allows developers to switch between different Node.js versions quickly and easily. This is especially useful when working on multiple projects that require d...
Webucator
webucator.com โบ catalog โบ web development โบ javascript
A Step-by-Step Guide to Installing nvm-windows for Node.js Management | Webucator
After installation, you might need to configure your system's environment variables, although the installer typically handles this. Ensure that the path to nvm-windows is added to your system's PATH environment variable.
TecAdmin
tecadmin.net โบ how-to-install-nvm-on-ubuntu-20-04
How To Install NVM on Ubuntu 20.04 โ TecAdmin
April 26, 2025 - Installing NVM (Node Version Manager) on Ubuntu 20.04 is easy. NVM lets you manage multiple versions of Node.js on your computer. This is helpful if you need to switch between different versions for different projects. In this guide, we will show you step-by-step how to install NVM on Ubuntu 20.04.
GeeksforGeeks
geeksforgeeks.org โบ linux-unix โบ how-to-install-nvm-on-ubuntu-22-04
How to Install NVM on Ubuntu 22.04 - GeeksforGeeks
July 23, 2025 - Installing the NVM on Ubuntu 22.04 is allows us to easily manage multiple versions of Node.js on the system which provides the flexibility and convenience for to your development projects. By following the steps outlined in this guide, you should be able to install NVM, verify the installation, install Node.js versions, and switch between them effortlessly.