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 › 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%
🌐
freeCodeCamp
freecodecamp.org › news › node-version-manager-nvm-install-guide
Node Version Manager – NVM Install Guide
September 9, 2022 - By Dillion Megida In this article, I'll explain how you can install NVM, or Node Version Manager, on Windows, Linux, and Mac. What is NVM? Node Version Manager (NVM), as the name implies, is a tool for managing Node versions on your device. Differen...
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 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.com
🌐 r/node
2
0
September 21, 2019
Step-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
🌐 r/learnjavascript
3
0
September 14, 2020
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
🌐 r/node
51
56
April 14, 2021
🌐
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.
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › how to install nvm on ubuntu
How to Install NVM on Ubuntu | phoenixNAP KB
April 24, 2025 - Node Version Manager (NVM) manages multiple Node.js versions, avoiding compatibility issues. Learn how to install NVM on Ubuntu.
🌐
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.
Find elsewhere
🌐
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.
🌐
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 - In the latest release (which as of the time of writing this is 1.1.9), you’ll find different assets. Click on the nvm-setup.exe asset which is the installation file for the tool:
🌐
Homebrew
formulae.brew.sh › formula › nvm
nvm — Homebrew Formulae
brew install nvm · Manage multiple Node.js versions · https://github.com/nvm-sh/nvm · License: MIT · Formula JSON API: /api/formula/nvm.json · Formula code: nvm.rb on GitHub · Bottle (binary package) installation support provided.
🌐
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
🌐
npm
docs.npmjs.com › downloading-and-installing-node-js-and-npm
Downloading and installing Node.js and npm | npm Docs
August 18, 2025 - 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.
🌐
Tipsbybits
tipsbybits.com › home › a comprehensive guide to installing and using nvm
A Comprehensive Guide to Installing and Using NVM - Tips by Bits
May 2, 2025 - Node Version Manager (NVM) is a powerful tool designed to help developers manage multiple Node.js versions on their devices. In this comprehensive guide, we’ll walk you through the steps to install and use NVM on various operating systems, including Windows, Linux, and macOS.
🌐
DreamHost
help.dreamhost.com › hc › en-us › articles › 360029083351-Installing-a-custom-version-of-NVM-and-Node-js
Installing a custom version of NVM and Node.js – DreamHost Knowledge Base
Overview This article walks you through installing Node.js using Node Version Manager (NVM) on a VPS or Dedicated Server. DreamHost support is unable to assist with custom installations. The dir...
🌐
Refine
refine.dev › blog › install-nvm-mac-and-windows
How to Install and Use NVM? | Refine
July 5, 2024 - ... This command will switch your ... version 14.18.0. The easiest way to install the nvm in Linux or MacOS is by using the curl or wget tool....
🌐
4Geeks
4geeks.com › how-to › install-nvm-linux
How to Install NVM on Linux (Ubuntu and Centos)
July 15, 2025 - Learn how to install NVM on Linux with our easy-to-follow guide. Covering popular distributions like Ubuntu and Fedora, this article includes troubleshooting...
🌐
Noroff
content.noroff.dev › node › installing-nvm.html
Installing NVM | Noroff Front-end Development
Please make sure that you do not have an existing installation of NodeJS on your computer before attempting to install NVM.
🌐
DEV Community
dev.to › sanzhanov › node-version-manager-nvm-how-to-install-and-use-step-by-step-guide-k4a
Node Version Manager (NVM): how to install and use (step-by-step guide) - DEV Community
November 17, 2022 - Go to the NVM for Windows releases page and select the latest version (the top one in the list), for example, it is currently 1.1.10. Then download the nvm-setup.exe file: I assume that most of you already have Node.js installed at this point ...
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-node-js-on-ubuntu-20-04
How to Install Node.js on Ubuntu | DigitalOcean
May 2, 2025 - This will get you the most recent version of the installation script. Before piping the command through to bash, it is always a good idea to audit the script to make sure it isn’t doing anything you don’t agree with. You can do that by removing the | bash segment at the end of the curl command: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh
🌐
RedwoodSDK
docs.redwoodjs.com › docs › how-to › using-nvm
Using nvm - RedwoodJS Docs
Local development mirrors production with Miniflare, which emulates the Cloudflare runtime. You get access to Durable Objects, D1 (database), R2 (blob storage), Queues, and more—right inside of the box. No installation required.
🌐
MonoVM
monovm.com › 🐧 linux 🐧 › how to install nvm on ubuntu: step-by-step guide
How to Install NVM on Ubuntu: Step-by-Step Guide
February 13, 2024 - Node.js, an integral part of server-side JavaScript, thrives on its adaptability. However, efficiently juggling various Node.js versions becomes paramount for developers. Enter Node Version Manager (NVM), a powerful tool designed explicitly for Ubuntu users. This comprehensive guide helps you learn how to install NVM on Ubuntu.