簡體   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