Home > Article > Web Front-end > How to delete nodejs
Method to delete nodejs: 1. Uninstall the node program from the "Uninstall Program" interface of the "Control Panel"; 2. Kill all node-related processes; 3. Check the environment variables to ensure that Nodejs is not referenced Or npm exists.
The operating environment of this article: Windows7 system, nodejs version 10.16.2, DELL G3 computer
How to delete nodejs?
Completely delete nodejs:
#1. Uninstall the node program from the "Uninstall a Program" interface in the "Control Panel".
(You can refer to: How to uninstall the node installed on the computer?)
2. Restart (or you may start from the task Kill all node-related processes in the manager).
3. Find these folders and delete them (and their contents) (if there are any). Depending on your installed version, UAC settings and CPU architecture, these may or may not be present:
C:\Program Files (x86)\Nodejs C:\Program Files\Nodejs C:\Users\{User}\AppData\Roaming\npm(或%appdata%\npm) C:\Users\{User}\AppData\Roaming\npm-cache(或%appdata%\npm-cache)
4. Check your %PATH% environment variable to make sure no references to Nodejs or npm exist.
5. If it is still not uninstalled, please type where node at the command prompt and you will see where it is - delete (it may also be the parent directory).
Recommended learning: "node.js Video Tutorial"
The above is the detailed content of How to delete nodejs. For more information, please follow other related articles on the PHP Chinese website!