卸载 Node.js Windows 10
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38602808/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Uninstall Node js Windows 10
提问by Joseph Goh
I have node installed in my machine with windows 10, however i found something weird with the node.
我在装有 Windows 10 的机器上安装了节点,但是我发现该节点有些奇怪。
When doing node -vfrom the command line, i got the running version is v0.10.28, but i am sure i have upgrade the node by downloading the node from the node.js which is the version is V4.4.7. So i tried to uninstall the node from the apps and feature, the node was removed, but through command line, i still able to do node -vand return the same version, tried to restart the machine and still the same.
当执行node -v命令行,我得到了运行的版本v0.10.28,但我相信我已经下载从它的版本是Node.js的节点升级的节点V4.4.7。因此,我尝试从应用程序和功能中卸载该节点,该节点已被删除,但通过命令行,我仍然能够执行node -v并返回相同的版本,尝试重新启动机器并且仍然相同。
Anyone know how to solve this?
有谁知道如何解决这个问题?
回答by mosesmeirelles
Try look for these folders and remove them (and their contents) if any still exist. Depending on the version you installed, UAC settings, and CPU architecture, these may or may not exist:
尝试查找这些文件夹并删除它们(及其内容)(如果仍然存在)。根据您安装的版本、UAC 设置和 CPU 架构,这些可能存在也可能不存在:
C:\Program Files (x86)\NodejsC:\Program Files\NodejsC:\Users\{User}\AppData\Roaming\npm(or%appdata%\npm)C:\Users\{User}\AppData\Roaming\npm-cache(or%appdata%\npm-cache)
C:\Program Files (x86)\NodejsC:\Program Files\NodejsC:\Users\{User}\AppData\Roaming\npm(或%appdata%\npm)C:\Users\{User}\AppData\Roaming\npm-cache(或%appdata%\npm-cache)
Check your %PATH%environment variableto ensure no references to Nodejsor npmexist.
检查您的%PATH%环境变量以确保没有引用Nodejs或npm存在。
回答by stanleyxu2005
I guess you have multiple nodejs installations on your system. You should run echo %PATH%to see, which is the first nodejs path.
我猜你的系统上有多个 nodejs 安装。你应该运行echo %PATH%看看,这是第一个 nodejs 路径。
To prove my guess, you can just goto the 4.4.7 installation folder and then run node -vto see the version number. I'm positive you will get 4.4.7.
为了证明我的猜测,你可以直接进入4.4.7安装文件夹,然后运行node -v查看版本号。我很肯定你会得到4.4.7。

