2016-04-13 179 views
3

我嘗試以下方法,所有這一切都失敗了的Node.js不會在Windows 7 X64的安裝

  1. 通過從節點站點GUI(不運行作爲管理員給定的選項運行.msi安裝)
  2. 經由comandline運行.msi安裝作爲管理員
  3. 運行choclatey安裝作爲管理員

這裏是choclatey輸出所看到的日誌中

Downloading nodejs.install 64 bit 
    from 'https://nodejs.org/dist/v5.10.1/node-v5.10.1-x64.msi' 
Installing nodejs.install... 
[ERROR] Running msiexec with /i "C:\Users\user1\AppData\Local\Temp\chocolatey\nodejs.install\5.10.1\nodejs.installInstall.msi" /quiet was not successful. Exit code was '1603' Error Mess 

age: 
. 
At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1:92 char:10 
+  throw <<<< $errorMessage 
    + CategoryInfo   : OperationStopped: ([ERROR] Running...or Message: 
.:String) [], RuntimeException 
    + FullyQualifiedErrorId : [ERROR] Running msiexec with /i "C:\Users\tcastonzo\AppData\Local\Temp\chocolatey\nodejs.install\5.10.1\nodejs.installInstall.msi" /quiet was not successful. 

    Exit code was '1603' Error Message: 
. 
The install of nodejs.install was NOT successful. 
Error while running 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1'. 
See log for details. 

Chocolatey installed 0/1 package(s). 1 package(s) failed. 
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 
Failures: 
- nodejs.install 
PS C:\GitProjects\reporting> choco install nodejs.install 
Installing the following packages: 
nodejs.install 
By installing you accept licenses for the packages. 

回答

-1

我在Windows 10

開始了我的後殼,確保我以管理員身份運行完全相同的錯誤,它的工作。

-1

我與Win-7的節點-v6.10.3-x64.msi和node-v6.10.3-x86.msi安裝程序有同樣的問題。

解決方案:

下載壓縮版本;解壓縮時,請注意導致錯誤的文件。 然後,使用資源管理器,深入到目標文件夾,創建一個空文件,然後將存檔文件的內容複製到新的空文件中。

我認爲目的地的FQ路徑太長。以下是我收到的錯誤消息。

! C:\Users\......\Downloads\node-v6.10.3-win-x64.zip: Cannot create node-v6.10.3-win-x64\node_modules\npm\node_modules\npm-registry-client\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules\number-is-nan\package.json 

! The system cannot find the path specified. 
+0

感謝格式化消息@BSMP。欣賞它。 – Starunit

相關問題