windows10 彻底卸载 nodejs 。(Windows 10 completely uninstalls nodejs.)

1、从控制面板的程序卸载 nodejs 。

2、删除node的安装目录:

默认是C:\Program Files\nodejs,也可能在其他盘,这取决于安装时的选择

3、查找.npmrc文件删除,

默认在C:\User\用户名。

4、逐一查看

C:\Program Files (x86)\Nodejs
C:\Program Files\Nodejs
C:\Users\用户名\AppData\Roaming\npm
C:\Users\用户名\AppData\Roaming\npm-cache
存在就删除

5、检查环境变量,

将node相关的配置都删掉,环境变量打开方式:我的电脑->属性->高级->环境变量->
用户变量的Path删除->系统变量的NODE_PATH里的node删掉
检查node和npm,

6、在cmd中输入node-v、npm-v

7、重启系统

————————

1. Uninstall nodejs from the program in the control panel.

2. Delete the installation directory of node:

The default is C: \ program files \ nodejs. It may also be on other disks, depending on the selection during installation

3. Find Npmrc file deletion,

The default is C: \ user \ user name.

4. Check one by one

C:\Program Files (x86)\Nodejs
C:\Program Files\Nodejs
C:\Users\用户名\AppData\Roaming\npm
C:\Users\用户名\AppData\Roaming\npm-cache
存在就删除

5. Check environment variables,

Delete all node related configurations, and open the environment variable: my computer – & gt; Attribute – & gt; Advanced – & gt; Environment variable – & gt;
Path deletion of user variable – & gt; Node of system variable_ Delete the node in the path
Check node and NPM,

6、在cmd中输入node-v、npm-v

7. Restart the system