Uninstall Nodejs from Windows: Quick Guide

Uninstall Nodejs Featured Image

In this tutorial, I will walk you through an easy step-by-step guide on how to uninstall Nodejs from Windows 10.

Here are different ways to uninstall Nodejs from Windows 10.

How to Check if Nodejs is Installed?

Here are steps to check if you have Nodejs installed on your Windows machine.

  • Open File Explorer
  • Go to This PC from the left sidebar
  • Open C:/ drive
  • Or, simply navigate to the file path you had originally installed Nodejs and look there for the nodejs directory.
  • Otherwise, you can simply move to this file path: C:\Program Files\nodejs

The other locations where you should check if Nodejs or NPM related files and directories are installed on your Windows machine can be:

  • 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 (make sure you look for the files or directories without the . prefix too)
  • C:\Users\{User}\AppData\Local\Temp\npm-*

Via Command Prompt

Another way to check if Nodejs is installed on your windows machine is to check it via Command Prompt in Windows.

  • Go to Start and search for Command Prompt
  • Or, simply press the Win key+R to open Run. Type cmd and hit Ctrl+Shift+enter to run Command Prompt as administrator.
  • Right click on the result and select Run as administrator
  • Now, pass this command:
node --version

How to Uninstall Nodejs from Apps & Features Settings?

Get started by following the below steps to uninstall Nodejs from Windows via the Apps & Features settings.

  • Click start button and go to settings by clicking the gear icon.
  • Click Apps.
  • Under the Apps & features subheading, look for a search box and search for Nodejs.
  • Click the Nodejs application.
  • Lastly, click Uninstall.
  • Check in the file path where you had installed Nodejs. The nodejs directory should now be gone.
  • You might be prompted to restart your Windows machine. Even if you are not, it is recommended you do it. Sometimes, it might take time to for changes to reflect.

How to Uninstall Nodejs from Command Prompt?

Follow the below-mentioned steps to uninstall Nodejs using Command Prompt in Windows 10.

  • Go to Start and search for Command Prompt
  • Or, simply press the Win key+R to open Run. Type cmd and hit Ctrl+Shift+enter to run Command Prompt as administrator.
  • Right click on the result and select Run as administrator
  • Now, pass this command:

npm cache clean –force

Make sure the command to uninstall Nodejs, is correct.

  • After deleting, make sure you check for the nodejs directory in your system whether it has been deleted or not.
  • You might be prompted to restart your Windows machine. Even if you are not, it is recommended you do it. Sometimes, it might take time to for changes to reflect.

How to Uninstall Nodejs Using Registry Editor in Windows 10?

Follow the below steps to uninstall nodejs using Registry Editor in your Windows 10 machine.

  • Open Start and search for Registry Editor and click the result. Or, simply press the Win key+R to open Run. Type regedit and hit enter.
  • You will be prompted by Windows saying “Do you want to allow this app to make changes?”. Click Yes.
  • Now, in the path field on top, simply paste this path:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Node.js

  • Next, on the sidebar on the left, you should now be able to see the Nodejs directory
  • Right click on it and click delete
  • Now, you will need to again check in the path where you originally installed Nodejs for the nodejs directory if it exists or not.
  • You might be prompted to restart your Windows machine. Even if you are not, it is recommended you do it. Sometimes, it might take time to for changes to reflect.

How to Uninstall Nodejs Using Control Panel from Windows 10?

Follow the methods below to uninstall Nodejs from Control Panel in Windows 10.

  • Open Start and search for Control Panel. Click the result.
  • Or, simply press the Win key+R to open Run. Type control and hit enter.
  • Click Programs
  • Under the Programs and Features option, click Uninstall a Program
  • Look for Nodejs and right click on it.
  • Now, click Uninstall.
  • You will be prompted by Control Panel by saying “Are you sure you want to uninstall Nodejs…”. Click Yes.
  • To make sure it is completely removed, check in the path where you originally installed Nodejs for the nodejs directory if it exists or not.
  • You might be prompted to restart your Windows machine. Even if you are not, it is recommended you do it. Sometimes, it might take time to for changes to reflect.

How to Uninstall Nodejs Using .msi Installer in Windows 10

Follow the steps demonstrated below to uninstall Nodejs using the .msi installer used for installing, repairing, and uninstalling Nodejs from Windows 10.

  • Open Start and search for .msi
  • Or, you can simply jump to the Downloads directory and look for the .msi file of Nodejs
  • If you do not find it there, look in the location where you installed the .msi installer for Nodejs
  • Click the Nodejs .msi installer file
  • You should now see a Nodejs setup open for you. Click Next
  • Click Remove
  • To make sure it is completely removed, check in the path where you originally installed Nodejs for the nodejs directory if it exists or not.
  • You might be prompted to restart your Windows machine. Even if you are not, it is recommended you do it. Sometimes, it might take time to for changes to reflect.

Read More: How to Update NodeJS Version on Windows, Linux, and macOS

Conclusion

In this tutorial, I covered an easy step-by-step guide on how to uninstall Nodejs from Windows 10.

Noteworthy References

Stack Overflow