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.
Optionally specify whether to install the 32 or 64 bit version (defaults to system arch). Set [arch] to "all" to install 32 AND 64 bit versions. Add --insecure to the end of this command to bypass SSL validation of the remote download server. nvm list [available]: List the node.js installations.
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
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....
🌐
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 ​
🌐
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.
🌐
Reddit
reddit.com › r/node › [how-to] install node.js on windows the recommended way
r/node on Reddit: [How-To] Install Node.js on Windows the Recommended Way
April 4, 2023 -

THe same Article Guide I wrote is linked here Article Link and has Photos for a nicer reading experience!

  1. Download the nvm-setup.exe in the link below

    NVM for Windows Download

  2. Run the nvm-setup.exe by clicking on it and follow the on screen setup instructions

  3. Check if you installed NVM sucessfully by using the command nvm --version in a Windows Terminal

  4. To install Node.js with nvm you can now run nvm install lts to install the long term support version of node

  5. Check which versions of node you have then use it as shown with nvm list and then nvm use make sure you are in administrator mode

  6. Check if node is working by running node --version

Top answer
1 of 2
1
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.
2 of 2
1
I personally like using chocolatey to do this. Instead of running the installer from the website anyway
🌐
YouTube
youtube.com › watch
how to install nvm in windows 11 - YouTube
installing node js in windows 11 | how to download nodejs You will also learn: how to downgrade node version on windows how to update node js version in wind...
Published   December 9, 2024
🌐
TecAdmin
tecadmin.net › install-nodejs-with-nvm-on-windows
How To Install NVM on Windows – TecAdmin
April 26, 2025 - This tutorial will help you to install and manage multiple Node.js versions on Windows using NVM. The coreybutler has build the nvm installer for the Windows systems. Visit the below link to download the NVM installer for the Windows systems.
Find elsewhere
🌐
HeyNode
heynode.com › tutorial › install-nodejs-locally-nvm
Install Node.js Locally with Node Version Manager (nvm) | HeyNode
The official documentation for ... shown below. If you’re using Windows check out this Windows-specific version of nvm. ... Using curl, or wget, download the installation ......
🌐
Windows Forum
windowsforum.com › forums › windows forums › windows tutorials
Set Up a Local Node.js Development Environment on Windows 10/11 with NVM | Windows Forum
October 25, 2025 - Download the latest release (the nvm-setup zip that contains nvm-setup.exe, or run the installer if you get it directly). Run the installer. You’ll be prompted to: Choose an install location for NVM (e.g., C:\nvm).
🌐
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.
🌐
GitHub
github.com › coreybutler › nvm-windows › releases
Releases · coreybutler/nvm-windows
A node.js version management utility for Windows. Ironically written in Go. - Releases · coreybutler/nvm-windows
Author   coreybutler
🌐
DEV Community
dev.to › otamm › set-up-windows-for-nodejs-development-with-nvm-1137
Set Up Windows for Node.js Development with NVM - DEV Community
October 18, 2021 - Now, instead of installing node.js from the official website, we should install the Node Version Manager and download node versions from there. In case you already have node installed this should not be a major problem as NVM will overwrite any node-related environment variables and symlinks, but I'd recommend you to uninstall it anyway as this process will render the current installation completely useless.
🌐
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. Here's how to install it: In the nvm-windows repository Readme, click on "Download Now!":
🌐
Nvmnode
nvmnode.com
NVM - Node.js Version Manager tool - NVM Documentation
NVM works on Windows, Linux, macOS, and WSL with implementations tailored for each platform. ... Use .nvmrc files to automatically switch to the correct Node.js version for each project. ... Straightforward commands for installing, switching, and managing Node.js versions. ... Configure mirrors for faster downloads in regions with slow connections to the official Node.js servers.
🌐
npm
docs.npmjs.com › downloading-and-installing-node-js-and-npm
Downloading and installing Node.js and npm | npm Docs
To publish and install packages to and from the public npm registry or a private npm registry, you must install Node.js and the npm command line interface using either a Node version manager or a Node installer. We strongly recommend using a Node version manager like nvm to install Node.js and npm.
🌐
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, ... platforms: unix, macOS, and windows WSL. To install or update nvm, you should run the install script. To do that, you may either download and run the script manually, or use the following ...
Starred by 90.4K users
Forked by 9.7K users
Languages   Shell 98.0% | Makefile 1.2%
🌐
RealWorldDev
realworlddev.hashnode.dev › installing-nvm-on-windows-11
How to Install NVM on Windows 11
March 2, 2022 - After starting a new Azure Function, I was met with error messages telling me I had the wrong Node version. This was a new machine, so after checking my version, I actually had none installed. First of all, we need to grab a release of NVM Windows so we can install it. To do that, head to here, which is Corey's GitHub releases page to get the latest version, and download 'nvm-setup.zip'.
🌐
OperaVPS
operavps.com › docs › install node.js on windows efficiently a guide for developers
Install Node.js on Windows Step-by-Step for Developers
September 17, 2025 - Here are steps to install Node.js and NPM via nvm-windows: 1. Download the latest version of nvm for Windows by referring to the GitHub repository and clicking the “Download Now!” button.