繁体   English   中英

Windows下找不到Node.exe

[英]Node.exe Not Found Under Windows

我正在设置必须在Windows 7下运行Node.js的开发人员计算机。但是,在安装了最新版本(截至今天为0.10.28)后,无论x86和x86_64口味如何,我都无法运行。

二进制文件的路径正确显示在我的PATH变量中(最后两个路径由Node.js Windows安装程序添加):

C:\Users\acastaner>echo %PATH%
C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:
\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Window
sPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program
 Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Intel\Intel(R) Manage
ment Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Com
ponents\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\D
AL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Pro
gram Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C
:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Micr
osoft SDKs\TypeScript\1.0\;";C:\Program Files\Microsoft\Web Platform Installer\;
"C:\Program Files (x86)\Spirent Communications\Spirent TestCenter 4.40\Layer 4-7
 Application";"C:\Program Files (x86)\Spirent Communications\Spirent TestCenter
4.42\Layer 4-7 Application";C:\Program Files (x86)\nodejs\;C:\Users\acastaner\
AppData\Roaming\npm

我已经确认C:\\ Program Files(x86)\\ nodejs \\目录包含文件npm.cmd和node.exe。 但这是发生了什么:

C:\Users\acastaner>npm
'npm' is not recognized as an internal or external command,
operable program or batch file.

那怎么可能?

您的PATH变量有一个错误: C:\\Program Files (x86)\\Microsoft SDKs\\TypeScript\\1.0\\;后有不平衡的引用C:\\Program Files (x86)\\Microsoft SDKs\\TypeScript\\1.0\\;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM