Uninstall Nodejs from Windows: Quick Guide

In this tutorial, we will walk you through an easy step-by-step guide on how to uninstall Node.js from Windows.

Before deep diving into the different processes of removing Node.js from your windows machine, let’s first see how to check if it is installed.

How to Check if Node.js is Installed?

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

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

The other locations where you should check if Node.js, NPM-related files, or any global package(installed packages) 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 Node.js is installed on your windows machine is to check it via command line using the version number.

  • Go to Start and search for Command Prompt
  • Or, 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

This command returns the versions of Node.js if it is installed on your pc.

How to Uninstall Node.js from Apps & Features Settings?

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

  • Click the 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 installed Nodejs. The “nodejs” directory containing the node modules directory should now be gone.

Note: 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 for changes to reflect.

How to Uninstall Node.js from Command Prompt?

Follow the below-mentioned steps to uninstall Node using the command line in Windows 10.

  • Go to Start and search for Command Prompt
  • Or, 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, check for the “nodejs” directory in your system to see whether it has been deleted or not.

Note: 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 for changes to reflect.

How to Uninstall Node.js Using Registry Editor in Windows 10?

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

  • Open Start and search for Registry Editor and click the result.
  • Or, 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.

Note: 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 for changes to reflect.

How to Uninstall Node.js Using Control Panel from Windows 10?

Follow the methods below for removing nodejs using Control Panel in Windows 10.

  • Open Start and search for Control Panel. Click the result.
  • Or, 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.

Note: 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 for changes to reflect.

How to Uninstall Node.js Using .msi Installer in Windows 10

Follow the steps demonstrated below to uninstall Node.js 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
  • Check the path where you originally installed Nodejs for the “nodejs” directory to ensure it is completely removed.

Note: 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 for changes to reflect.

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

Conclusion

Programming is an essential tool in the field of science, as it allows researchers to process and analyze vast amounts of data quickly and accurately. However, for students, programming can be a challenging subject, especially when it comes to homework and assignments. That’s where programming science help comes in. Many online resources and tutoring services are available to assist students with their CW assignments, whether it be in C++, Python, or another language.

In this tutorial, we have covered the different processes of removing Node .js from windows. Node.js can be uninstalled using the App and Features Setting, using the command prompt, using registry editor, the control panel and the .msi installer. You can choose any method according to your preference. Hope this tutorial helps you to uninstall Node.js from your windows machine.

Reference

https://stackoverflow.com/questions/20711240/how-to-completely-remove-node-js-from-windows/

Aneesha S
Aneesha S
Articles: 172