[英]Node.js won't install on Windows 7 x64
I tried the following methods all of which have failed我尝试了以下所有方法都失败了
Here is the choclatey output as seen in the log这是日志中看到的 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.
I had same problem with Win-7 with node-v6.10.3-x64.msi and node-v6.10.3-x86.msi installers.我在使用 node-v6.10.3-x64.msi 和 node-v6.10.3-x86.msi 安装程序的 Win-7 上遇到了同样的问题。
Solution:解决方法:
Download the Zipped version;下载压缩版本; When extracting, note the file that causes error.解压时,请注意导致错误的文件。 Then, using Explorer, drill down to the target folder, created an empty file, then copy the content of archived file into the new, empty file.然后,使用资源管理器,深入到目标文件夹,创建一个空文件,然后将存档文件的内容复制到新的空文件中。
I think the FQ path to destination is too long.我认为到达目的地的 FQ 路径太长了。 Following is the error message I received.以下是我收到的错误消息。
! 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.
Since support for windows 7 ended for Nodejs .I found the manual installment easier.由于 Nodejs 对 windows 7 的支持结束了。我发现手动安装更容易。 see this comment from github: https://github.com/nodejs/node/issues/33000#issuecomment-644530517从github看到这个评论: https : //github.com/nodejs/node/issues/33000#issuecomment-644530517
Do follow the same steps with the binary zip file from : here对来自以下位置的二进制 zip 文件执行相同的步骤: here
I the exact same error in Windows 10.我在 Windows 10 中出现完全相同的错误。
After launched my shell, making sure I was running as administrator, it worked.启动我的 shell 后,确保我以管理员身份运行,它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.