我正在设置一台必须在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.
这怎么可能?
答案 0 :(得分:2)
您的PATH变量有错误:C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;
后有一个不平衡的报价。