The Wayback Machine - https://web.archive.org/web/20240823010618/https://www.geeksforgeeks.org/how-to-completely-remove-node-js-from-windows/
Open In App

How to Completely Remove Node.js from Windows ?

Last Updated : 07 Jun, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

We can remove the nodejs from window by uninstalling it from the programs list. Node.js is a popular JavaScript runtime used for building server-side applications. However, there may come a time when you need to remove Node.js from your Windows system completely. Whether it’s due to a corrupted installation, needing to install a different version, or simply not needing it anymore, here’s a comprehensive guide to uninstall Node.js from your Windows machine.

Steps to Completely Remove Node.js from Windows

Step 1: Whenever we install a package with the 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 the 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.

Conclusion

By following these steps, you should have completely removed Node.js and npm from your Windows system. This thorough process ensures that no residual files or environment variables are left behind, which is especially important if you plan to reinstall Node.js or switch to a different version. If you encounter any issues during the removal process, restarting your computer and repeating the steps can help resolve them.



Similar Reads

How to Completely Uninstall Node.js & Reinstall from Beginning (Mac OS X) ?
Node.js is a widely adopted and robust platform that allows software engineers to create high-performance and scalable web applications with ease. However, there might be instances where you need to perform a complete uninstallation of Node.js from your Mac OS X system and start anew. This necessity could arise due to various factors, such as outda
3 min read
How to use protractor to wait for an element to completely fade-in ?
Introduction: Protractor is an end-to-end test framework developed for AngularJS applications. However, it also works for non-Angular JS applications. It runs tests against the application interacting with it as a real user would, running in a real browser. In this article, we are going to use Protractor to check if an element has completely faded-
3 min read
How Set Default Timezone in Node.js for Windows ?
Node.js is mainly used for non-blocking, event-driven servers because of its single-threaded nature. It is utilized for traditional websites and back-end API services but was created with real-time, push-based architectures in mind. By default, Node.js uses the system's timezone for date and time operations. However, there may be situations where y
3 min read
Installation of Node JS on Windows
Node.js can be installed in multiple ways on a computer. The approach used by you depends on the existing Node.js development environment in the system. There are different package installers for different environments. You can install Node.js by grabbing a copy of the source code and compiling the application. Another way of installing Node.js is
2 min read
How to remove all Global Modules in Node.js ?
Node.js is an open-source and cross-platform runtime environment for executing JavaScript code outside of a browser. You need to remember that Node.js is not a framework and it’s not a programming language. Most of the people are confused and understand it’s a framework or a programming language. We often use Node.js for building back-end services
2 min read
Node.js fs-extra remove() Function
the remove() function deletes the given file or directory. All the files inside a directory are deleted. If the given file or directory does not exist the function will do nothing. Syntax: fs.remove(path,callback) Parameters: This function accepts two parameters as mentioned above and described below. path: It is a string that contains the file pat
1 min read
Remove all the child elements of a DOM node in JavaScript
Child elements are the nested elements in the HTML and we have to remove them. To remove the elements in HTML we need to use DOM methods. There are so many ways to remove the child elements of a DOM node: Table of Content Using removeChild()Using innerHTML propertyUsing removeChild()In this approach, we are using the HTML DOM removeChild() method,
2 min read
JavaScript Program to Remove Empty Node from Linked List
JavaScript allows us to remove the empty node from the linked list by traversing through the linked list and finding each empty node. There are several approaches available in JavaScript through which this can be achieved which are as follows: Table of Content Iterative ApproachRecursive ApproachIterative ApproachThis approach traverses the linked
3 min read
Node.js Automatic restart Node.js server with nodemon
We generally type following command for starting NodeJs server: node server.js In this case, if we make any changes to the project then we will have to restart the server by killing it using CTRL+C and then typing the same command again. node server.js It is a very hectic task for the development process. Nodemon is a package for handling this rest
1 min read
Top 3 Best Packages Of Node.js that you should try being a Node.js Developer
Node.js is an open-source and server-side platform built on Google Chrome's JavaScript Engine (V8 Engine). Node.js has its own package manager called NPM( Node Package Manager) which has very useful and incredible libraries and frameworks that makes our life easier as a developer to work with Node.js. The 3 Best Packages of Node.js that you should
4 min read
Javascript Program For Inserting A Node After The N-th Node From The End
Insert a node x after the nth node from the end in the given singly linked list. It is guaranteed that the list contains the nth node from the end. Also 1 &lt;= n. Examples: Input : list: 1-&gt;3-&gt;4-&gt;5 n = 4, x = 2 Output : 1-&gt;2-&gt;3-&gt;4-&gt;5 4th node from the end is 1 and insertion has been done after this node. Input : list: 10-&gt;8
5 min read
Javascript Program For Swapping Kth Node From Beginning With Kth Node From End In A Linked List
Given a singly linked list, swap kth node from beginning with kth node from end. Swapping of data is not allowed, only pointers should be changed. This requirement may be logical in many situations where the linked list data part is huge (For example student details line Name, RollNo, Address, ..etc). The pointers are always fixed (4 bytes for most
5 min read
Node.js Connect Mysql with Node app
Node.js is a powerful platform for building server-side applications, and MySQL is a widely used relational database. Connecting these two can enable developers to build robust, data-driven applications. In this article, we'll explore how to connect a Node.js application with a MySQL database, covering the necessary setup, configuration, and basic
2 min read
How to resolve 'node' is not recognized as an internal or external command error after installing Node.js ?
Encountering the error message ‘node’ is not recognized as an internal or external command after installing Node.js can be frustrating, especially when you’re eager to start working on your project. This error usually means that your system cannot find the Node.js executable because the path to it is not set correctly in your system's environment v
2 min read
Why Linux Hosting is Cheaper than Windows Hosting ?
Most of the data that we get across the web, via websites, email services, etc. are essentially stored or hosted on servers. These servers run on various platforms (operating systems). The two major operating systems are Unix-based Linux and Microsoft Windows. Apart from these, Ubuntu and Debian OS are also used, though less. About 2/3 rd of all se
5 min read
How to install XAMPP on Windows ?
XAMPP is the most popular software package which is used to set up a PHP development environment for web services by providing all the required software components. During the process of software deployment, most of the web servers use almost similar components, so use of XAMPP provides easy transition from local server to live server. XAMPP is a A
4 min read
How to Setup Sublime Text 3 for Python in Windows?
Written by a Google engineer sublime text is a cross-platform IDE developed in C++ and Python. It has basic built-in support for Python. Sublime text is fast and you can customize this editor as per your need to create a full-fledged Python development environment. You can install packages such as debugging, auto-completion, code linting, etc. Ther
2 min read
Google Maps Info Windows
Google Maps Info Windows is used to add a window to display the information of the specific area. Usually, the info window is attached to a marker. You can attach an info window by instantiating the google.maps.InfoWindow class. Syntax: var infowindow = new google.maps.InfoWindow({content: "Content String"}); infowindow.open(map, marker); Property
2 min read
How to create windows loading effect using HTML and CSS ?
In this article, we are going to create a window loading effect before the lock screen appears using HTML and CSS. Glimpse of the Windows Loading Effect: Approach: Create an HTML file that contains HTML div in which we are giving the loader effect.Then we create 5 span elements which are used for creating inline elements.Then we have to use @keyfra
4 min read
How to switch between multiple windows of Electron JS application ?
If you have prior knowledge of Web Application Development and thinking to jump into the building of Desktop Application, you are at the right place to start with. ElectronJS is an open-source framework that helps to develop a cross-platform desktop application using simple HTML, CSS, and JavaScript. Even if you want to develop an application using
6 min read
React Desktop Windows Window Component
React Desktop is a popular library to bring the native desktop experience to the web. This library provides macOS and Windows OS components. Window Component is used to allow the users to create a window. We can use the following approach in ReactJS to use the React Desktop Windows Window Component. Window Props: background: It is used to set the c
2 min read
React Desktop Windows View Component
React Desktop is a popular library to bring the native desktop experience to the web. This library provides macOS and Windows OS components. View Component is used to allow the users to create a View. We can use the following approach in ReactJS to use the React Desktop Windows View Component. View Props: background: It is used to set the component
2 min read
React Desktop Windows TitleBar Component
React Desktop is a popular library to bring the native desktop experience to the web. This library provides macOS and Windows OS components. TitleBar Component is used to allow the users to create a TitleBar with controls like Maximize, Minimize and Close. We can use the following approach in ReactJS to use the React Desktop Windows TitleBar Compon
2 min read
React Desktop Windows Text Component
React Desktop is a popular library to bring the native desktop experience to the web. This library provides macOS and Windows OS components. Text Component is used to allow the users to add their custom text in the given text area. It is specially designed to present the Text in your application. We can use the following approach in ReactJS to use
2 min read
React Desktop Windows Radio Component
React Desktop is a popular library to bring the native desktop experience to the web. This library provides macOS and Windows OS components. Radio Component is used to allow the users to select one option from a set. We can use the following approach in ReactJS to use the React Desktop Windows Radio Component. Radio Props: color: It is used to set
2 min read
React Desktop Windows Label Component
React Desktop is a popular library to bring the native desktop experience to the web. This library provides macOS and Windows OS components. Label Component is used to allow the users to add their own custom label for any element. We can use the following approach in ReactJS to use the React Desktop Windows Label Component. Label Props: background:
2 min read
How to enable JavaScript in Windows ?
Whenever you are browsing through some websites, you can observe that some of the blocks are not displayed properly. Instead of behaving dynamic, they are just standstill like any other static page which is very undesirable to the user. This behavior is mainly because of not enabling JavaScript on your browser in windows. JavaScript plays a main ro
2 min read
How to Install imap extension in PHP on Windows?
IMAP stands for Internet Message Access Protocol. It is an application layer protocol. PHP-IMAP is used to efficiently access messages from the IMAP server. IMAP stores email on the server and can download on-demand. To access the IMAP server we have to use PHP IMAP extension, now using this extension we can execute several operations to get differ
2 min read
React Desktop Windows 10 Component Complete Reference
React Desktop is a popular JavaScript library that is built on top of Facebook's React library, which focuses to bring the native desktop experience to the web. We can utilize the react-desktop in any of the Javascript projects that work perfectly along with supporting the NW.js &amp; Electron.js. The list of complete react-desktop Windows 10 Compo
1 min read
How to Install PHP GD in Windows?
GD is an open-source code library that is required to create and manipulate images in PHP. It is used for creating PNG, JPEG, and GIF images. It is commonly used to create charts, graphics, thumbnails, etc, and website development is the most common application of GD. It was originally developed by Thomas Boutell and is now maintained by Pierre-A.
2 min read
three90RightbarBannerImg