Skip to content
Related Articles

Related Articles

How to completely remove node.js from Windows ?

View Discussion
Improve Article
Save Article
  • Last Updated : 19 May, 2022
View Discussion
Improve Article
Save Article

We can completely remove Node.js from windows using the following simple steps:

Step 1: Whenever we install a package with command npm install <package name>, npm stores the cache inside the user file system. The default directory where the cache data is stored on Windows is %AppData%/npm-cache. So, we need to clean the cache first. The cache can be cleaned by using the following command.

npm cache clean --force 

Step 2: After that, you can verify the cache by using the below command:

npm cache verify

Step 3: Now open control panel in the computer. Search for Program and features. Under the program and features click on Uninstall a program. Now search for Node.js and uninstall it.

Step 4: Restart your computer or kill all node-related processes from Task Manager.

Step 5: Look for folder in your computer and if they are present remove them. The folders and files may or may not exist in your computer depending on various factors like installed version or CPU architecture.

  • C:\Program Files (x86)\Nodejs
  • C:\Program Files\Nodejs
  • C:\Users\{User}\AppData\Roaming\npm or open run and type appdata and click ok and open roaming there you will find npm.
  • C:\Users\{User}\AppData\Roaming\npm-cache or open run and type appdata and click ok and open roaming there you will find npm-cache.
  • C:\Users\{User}\.npmrc
  • C:\Users\{User}\package.json
  • C:\Users\{User}\package-lock.json
  • C:\Users\{User}\AppData\Local\Temp\npm-*                       

Step 6: After that check the environment path variables and make sure no references to npm or Node.js exist.

Step 7: If Node.js is still not uninstalled then open the command prompt and type the below command:

where node

Step 8: If Node.js is not uninstalled the command will output the location of Node.js. Go to that location and uninstall the directory.

Step 9: Restart the computer. Node.js is now completely uninstalled.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!