The clean way to uninstall would be first to uninstall all the node packages which you have installed, you can list all those packages using
nvm list
To uninstall a specific NodeJs package run
nvm uninstall v16.13.0
After you have uninstalled all the packages go to the directory
C:\Users\%USERNAME%\AppData\Roaming\nvm
there you will see unins***.exe you can perform a clean uninstall there.
This will only work if you are or have installed all the node versions using NVM (Node Version Manager)
Answer from Umer Kiani on Stack OverflowThe clean way to uninstall would be first to uninstall all the node packages which you have installed, you can list all those packages using
nvm list
To uninstall a specific NodeJs package run
nvm uninstall v16.13.0
After you have uninstalled all the packages go to the directory
C:\Users\%USERNAME%\AppData\Roaming\nvm
there you will see unins***.exe you can perform a clean uninstall there.
This will only work if you are or have installed all the node versions using NVM (Node Version Manager)
In your terminal, just type the code below
nvm root
This will show the root path of nvm on your computer.In the folder you can find a unins.exe file. Run it. That's all.
How to completely remove node.js from Windows - Stack Overflow
Is there a way to uninstall all node and npm instances from your windows machine including all the packages and files related to them?
node.js - nvm uninstall doesn't actually uninstall the node version - Stack Overflow
Node Version Manager
Videos
How to remove Node.js from Windows:
Take a deep breath.
Run
npm cache clean --forceUninstall from Programs & Features with the uninstaller.
Reboot (or you probably can get away with killing all node-related processes from Task Manager).
Look for these folders and remove them (and their contents) if any still exist. Depending on the version you installed, UAC settings, and CPU architecture, these may or may not exist:
C:\Program Files (x86)\NodejsC:\Program Files\NodejsC:\Users\{User}\AppData\Roaming\npm(or%appdata%\npm)C:\Users\{User}\AppData\Roaming\npm-cache(or%appdata%\npm-cache)C:\Users\{User}\.npmrc(and possibly check for that without the.prefix too)C:\Users\{User}\AppData\Local\Temp\npm-*
Check your
%PATH%environment variable to ensure no references toNodejsornpmexist.If it's still not uninstalled, type
where nodeat the command prompt and you'll see where it resides -- delete that (and probably the parent directory) too.Reboot, for good measure.
Scenario: Removing NodeJS when Windows has no Program Entry for your Node installation
I ran into a problem where my version of NodeJS (0.10.26) could NOT be uninstalled nor removed, because Programs & Features in Windows 7 (aka Add/Remove Programs) had no record of my having installed NodeJS... so there was no option to remove it short of manually deleting registry keys and files.
Command to verify your NodeJS version: node --version
I attempted to install the newest recommended version of NodeJS, but it failed at the end of the installation process and rolled back. Multiple versions of NodeJS also failed, and the installer likewise rolled them back as well. I could not upgrade NodeJS from the command line as I did not have SUDO installed.
SOLUTION: After spending several hours troubleshooting the problem, including upgrading NPM, I decided to reinstall the EXACT version of NodeJS on my system, over the top of the existing installation.
That solution worked, and it reinstalled NodeJS without any errors. Better yet, it also added an official entry in Add/Remove Programs dialogue.
Now that Windows was aware of the forgotten NodeJS installation, I was able to uninstall my existing version of NodeJS completely. I then successfully installed the newest recommended release of NodeJS for the Windows platform (version 4.4.5 as of this writing) without a roll-back initiating.
It took me a while to reach sucess, so I am posting this in case it helps anyone else with a similar issue.
Yeah, for some reason, I am supposed to do that to install nvm, which is very frustrating. Is there an easy way to do that?
Hello gang, I am having issues using Node version manager on windows. I have checked my environmental variables, manually added paths via my bash file, and i used the powershell, command prompt, and git bash. NVM commands work fine but node -v and npm -v will not work at all. Incredibly frustrating as i was in the middle of working on AWS services so this is incredibly counter productive. Any advice?
I should add that i was using the latest version of node up until today without any issues. An application or project i was working on necessitated an older version of Node.js. The Windows support article https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows explains in few details additional processes i could take to resolve the issue so i have been relying on information found on the web. I can send photos of my environmental variables although i am very cautious uploading any information regarding my local machine via a subreddit about programmers learning. Unfortunately not all humans live for the betterment of the human race. If anyone has dealt with this problem. let me know a resource i can delve into or how you resolved the issue.