【nodejs】How to completely remove node.js from Windows

first step:

Step two:

third step

 

 

 

the fourth step

  • 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(may also check without prefix).
  • C:\Users\{User}\AppData\Local\Temp\npm-*

 the fifth step

Delete the path related to Node.js in the environment variable. You can open a command prompt and enter echo %PATH%to view environment variables.

Windows [Version 10.0.19044.1766]
(c) Microsoft Corporation. all rights reserved.

C:\Users\zyz>echo %PATH%
D:\develop\Java software installation location\jdk\jdk1.8\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\develop\Java software installation location\git\Git\cmd;D:\develop\mysql\mysql8.0\MySQLServer 8.0_Server\bin;D:\develop\Java software installation location\maven\3.3.9\apache-maven-3.3.9\bin;C:\Users\zyz\AppData\Local\Microsoft\WindowsApps

C:\Users\zyz>

You can refer to the following bloggers

Uninstall Node.js on Windows 10 - Stack Overflow

How to completely remove node.js from Windows - Stack Overflow

Guess you like

Origin blog.csdn.net/m0_59281987/article/details/129801024