Steps to remove node.js from Windows completely

How to remove node.js from Windows completely ?

This tutorial guides you on how to remove node.js from Windows completely.

Steps to remove node.js from Windows completely

Follow the below steps to remove node.js from your Windows machine completely.

1: First you need to run the following command

npm cache clean --force

The above command will clean the cache first. This step is required as you know whenever you install the package using command npm insall <package_name>, npm will store details in the cache. The default directory where is cache is stored in your Windows file system is %AppData%/npm-cache.

2: Next, you need to open the control panel -> Uninstall a program. After that, search for Node.js program and uninstall from Programs and Features.

Steps to remove node.js from Windows completely

3: After uninstalling Node.js program, you need to reboot your Windows machine or kill all node-related processes manually from Task Manager.

4: Search for the following folders and files in your Windows machine and remove them manually if it is present after uninstallation.

  • C:\Program Files (x86)\Nodejs
  • C:\Program Files\Nodejs
  • C:\Users\{User}\AppData\Roaming\npm or you can open run app and type the following: %AppData%\npm.
  • C:\Users\{User}\AppData\Roaming\npm-cache or you can open run app and type the following:  %AppData%\npm-cache.
  • C:\Users\{User}\.npmrc
  • C:\Users\{User}\AppData\Local\Temp\npm-*

5: Check %PATH% environment variable and make sure that there are no references to npm or Node.js. If there are any values exists still, you need to delete them.

6:  Also, you can double check if Node.js is still not uninstalled by running the following command. Suppose, if it is not uninstalled yet you will see where it is still residing. Therefore you can delete that and the root directory also to make sure everything is deleted.

C:\Users990>where node
C:\Program Files\nodejs\node.exe

7: Finally, restart your Windows machine.

That’s it. You have completely removed Node.js from Windows.

Hope it is helpful 🙂

Also see:

References:

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments