How to delete nodejs: 1. Open the "Control Panel" and click "Uninstall a Program"; 2. In the "Uninstall or Change Program" interface, find and select the "node.js" program, right-click and select "Uninstall"; 3. Restart the computer; 4. Delete all files or directories related to node.
The operating environment of this tutorial: windows7 system, nodejs version 14.15.4, DELL G3 computer.
How to delete nodejs:
1. Uninstall nodejs
Open the "Control Panel" , click "Uninstall a program"
In the "Uninstall or change program" interface, find and select the node.js program, right-click the mouse Select "Uninstall"
2. After the node program is uninstalled, restart the computer
3. Delete the related files or directories of node.js
Look for these folders and delete them (and their contents) if they are still there. 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 (or %appdata%\npm)
C:\Users\{User}\AppData\Roaming\npm-cache (or %appdata%\npm-cache)
4. Check your % PATH% environment variable to ensure 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: "nodejs 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!