![](https://static.wixstatic.com/media/a27d24_5ee05639b2fe4c5dae30072e3b380eae~mv2.jpg/v1/fill/w_980,h_735,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_5ee05639b2fe4c5dae30072e3b380eae~mv2.jpg)
Well, you must be wondering why a separate blog altogether for uninstalling Node.js?. Believe it or not I have spent more than half day to just figure out the correct steps to uninstall Node.js.
In this blog, you will see the steps to be performed precisely the way mentioned and voila you will have uninstalled Node.js from your Windows machine at the last step.
Let's get started!
1) Open command prompt and Run npm cache clean --force
2) Uninstall from Programs & Features with the uninstaller.
3) Reboot (or you probably can get away with killing all node-related processes from Task Manager).
4) 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)\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-*
5) Check your %PATH% environment variable to ensure no references to Nodejs or npm exist.
6) If it's still not uninstalled, type where node at the command prompt and you'll see where it resides -- delete that (and probably the parent directory) too.
7) Reboot, for good measure.
Sharing is Caring!
Thanks for reading!
Kommentare