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 OverflowVideos
THe same Article Guide I wrote is linked here Article Link and has Photos for a nicer reading experience!
Download the nvm-setup.exe in the link below
NVM for Windows Download
Run the nvm-setup.exe by clicking on it and follow the on screen setup instructions
Check if you installed NVM sucessfully by using the command
nvm --versionin a Windows TerminalTo install Node.js with nvm you can now run
nvm install ltsto install the long term support version of nodeCheck which versions of node you have then use it as shown with
nvm listand thennvm usemake sure you are in administrator modeCheck if node is working by running
node --version