How to remove node.js from Windows completely ?
This tutorial guides you on how to remove node.js from Windows completely.
Steps to remove node.js from Windows completely
Follow the below steps to remove node.js from your Windows machine completely.
1: First you need to run the following command
npm cache clean --force
The above command will clean the cache first. This step is required as you know whenever you install the package using command npm insall <package_name>, npm will store details in the cache. The default directory where is cache is stored in your Windows file system is %AppData%/npm-cache.
2: Next, you need to open the control panel -> Uninstall a program. After that, search for Node.js program and uninstall from Programs and Features.
3: After uninstalling Node.js program, you need to reboot your Windows machine or kill all node-related processes manually from Task Manager.
4: Search for the following folders and files in your Windows machine and remove them manually if it is present after uninstallation.
- C:\Program Files (x86)\Nodejs
- C:\Program Files\Nodejs
- C:\Users\{User}\AppData\Roaming\npm or you can open run app and type the following: %AppData%\npm.
- C:\Users\{User}\AppData\Roaming\npm-cache or you can open run app and type the following: %AppData%\npm-cache.
- C:\Users\{User}\.npmrc
- C:\Users\{User}\AppData\Local\Temp\npm-*
5: Check %PATH% environment variable and make sure that there are no references to npm or Node.js. If there are any values exists still, you need to delete them.
6: Also, you can double check if Node.js is still not uninstalled by running the following command. Suppose, if it is not uninstalled yet you will see where it is still residing. Therefore you can delete that and the root directory also to make sure everything is deleted.
C:\Users990>where node C:\Program Files\nodejs\node.exe
7: Finally, restart your Windows machine.
That’s it. You have completely removed Node.js from Windows.
Hope it is helpful 🙂
Also see:
- Call ngOnInit() again from another function – Angular 9 ?
- ngOnChanges get new value and previous value – Angular
- Global Angular CLI version is greater than your local version
- Upgrade Angular CLI to the latest version Angular 9 or 10 ?
- How to use new static option in ViewChild Angular 9 ?
- Project contents into angular components using ng-content
- Call ngOnInit() again from another function – Angular 9 ?
- ngAfterContentInit with Example – Angular
- make npm install command to work behind proxy ?
- Node Sass could not find a binding for your current environment
- Change node version using nvm ?
- Angular Component : In which lifecycle hook you can check value of DOM element ?
- @ContentChild TypeError: Cannot read property ‘nativeElement’ of undefined
- Access ng-content with @ContentChild – Angular Component
- How to select an element in a component template – Angular ?
- Difference between @ViewChild and @ContentChild – Angular Example
- Expected 0 type arguments, but got 1 : Angular
- Angular – Access template reference variables from component class ?
- Pass variable from parent to custom child component – Angular 9
- Cannot find name ‘Output’ – Angular
- EventEmitter parameter value undefined for listener
- Typescript Error: Property does not exist on value of type
- Remove http and https proxy settings of npm and git ?