How to completely uninstall Node.js and npm from Windows
Learn, how to completely uninstall node.js and npm from a Windows operating system.
Uninstalling the Node.js
- Clear the npm cache by running the following command in your terminal.
npm cache clean --force-
Go to the windows
control paneland click onUninstall a program, selectNode.jsand click onuninstalltab to uninstall the node and npm successfully. -
Restart your system.
-
Verify if node.js and npm are completely uninstalled from your system using:
node -vIf the above command prints command not found then you’re successfully uninstalled, otherwise look into the below directories and remove the contents manually.
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)You can also learn, How to uninstall node and npm from macos.


