Skip to main content

Posts

Showing posts from March, 2020

How to completely uninstall node.js

There is no need to panic if your node.js version is wrong or if you need to deep clean. Follow these steps: Calm down and take a deep breath. From your shell environment, run the command - npm cache clean --force From the operating system, carry out an uninstall with the uninstaller. Reboot the machine. Find these folders and remove them and all the contents if they exist. Some of them may or may not exist: C:\Program Files (x86)\Nodejs C:\Program Files\Nodejs C:\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-* Confirm that the  %PATH% environment variable has no references to Nodejs or npm exist. If node is still there,  type where node at the command prompt and you can locate where it resides -- delete all the folders. Reboot your machine again.