by Sai gowtham

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

  1. Clear the npm cache by running the following command in your terminal.
npm cache clean --force
  1. Go to the windows control panel and click on Uninstall a program, select Node.js and click on uninstall tab to uninstall the node and npm successfully.
  2. Restart your system.
  3. Verify if node.js and npm are completely uninstalled from your system using:
node -v

If 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.

Top Udemy Courses

JavaScript - The Complete Guide 2020 (Beginner + Advanced)
JavaScript - The Complete Guide 2020 (Beginner + Advanced)
45,614 students enrolled
52 hours of video content
View Course
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
284,472 students enrolled
40 hours of video content
View Course
Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
130,921 students enrolled
21 hours of video content
View Course