node.js 安装向导提前结束

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12472079/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 16:18:35  来源:igfitidea点击:

node.js Setup Wizard ended prematurely

node.js

提问by Dmytro Pastovenskyi

I can't install node.js (0.8.9). I'm doing it via Setup Wizard and each time at the end of installation I get message "Node.js Setup Wizard ended prematurely".

我无法安装 node.js (0.8.9)。我是通过安装向导完成的,每次安装结束时,我都会收到消息“Node.js 安装向导提前结束”。

What could it be? Thanks.

会是什么呢?谢谢。

采纳答案by Jim

This may help someone in the future. I got a similar message from the installer and found that I could go to command prompt and run the MSI with a command line option to make it create a log file (like node-v0.10.24-x64.msi /lxv C:\Logs\Nodejs.log), where you can choose what the log is called and where it goes.

这可能会在将来对某人有所帮助。我从安装程序收到类似的消息,发现我可以转到命令提示符并使用命令行选项运行 MSI 以使其创建日志文件(如node-v0.10.24-x64.msi /lxv C:\Logs\Nodejs.log),您可以在其中选择日志的名称和位置.

In my case, we are running in an Active Directory domain environment and some of our folders that are normally local are redirected to a network share so they are always there no matter what computer we log into. Mostly for the benefit of our "My Documents" folder.

就我而言,我们在 Active Directory 域环境中运行,我们的一些通常在本地的文件夹被重定向到网络共享,因此无论我们登录哪台计算机,它们始终存在。主要是为了我们的“我的文档”文件夹。

When looking through the log I found the actual error that I was getting:

在查看日志时,我发现了我遇到的实际错误:

  • WixCreateInternetShortcuts: Error 0x80070005: failed to save shortcut '\ad.local\system\users\<myAcctName>\Start Menu\Programs\Node.js\Node.js website.url'
  • WixCreateInternetShortcuts: Error 0x80070005: failed to create Internet shortcut
  • CustomAction WixCreateInternetShortcuts returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox).
  • WixCreateInternetShortcuts:错误 0x80070005:无法保存快捷方式 '\ad.local\system\users\<myAcctName>\Start Menu\Programs\Node.js\Node.js website.url'
  • WixCreateInternetShortcuts:错误 0x80070005:无法创建 Internet 快捷方式
  • CustomAction WixCreateInternetShortcuts 返回实际错误代码 1603(请注意,如果在沙箱内进行翻译,这可能不是 100% 准确)。

Resolution (for me)

分辨率(对我来说)

Oddly enough, just running an admin escalated command prompt first, and then running the MSI lets it install correctly.

奇怪的是,只需先运行管理员升级的命令提示符,然后运行 ​​MSI 即可使其正确安装。

I thinkthe difference is that when you double-click on an MSI and it escalates, it runs as TrustedInstallerand while that account has access to everything on my box, it does not have network access. When I run an escalated command prompt, it is running as me, but already escalated (the MSI never needs to ask for escalation), so it works.

认为不同之处在于,当您双击 MSI 并且它升级时,它会运行TrustedInstaller,而该帐户可以访问我机器上的所有内容,但它没有网络访问权限。当我运行升级的命令提示符时,它以我的身份运行,但已经升级(MSI 永远不需要要求升级),所以它可以工作。

Final Note:

最后说明:

As of 7/22/2015, the node.js team has finally tracked down the issue with the installer and from 0.12.8 and forward this should be no longer an issue for us. I tested an early version of the installer for them to make sure it worked for me and there were no hitches with the install.

截至 2015 年 7 月 22 日,node.js 团队终于找到了安装程序的问题,从 0.12.8 开始,这对我们来说应该不再是问题了。我为他们测试了早期版本的安装程序,以确保它对我有用,并且安装没有任何问题。

https://github.com/joyent/node/issues/5849#issuecomment-123905214

https://github.com/joyent/node/issues/5849#issuecomment-123905214

As of this writing, 7/30/2015, the current version was still 0.12.7, so x.8 has not yet been rolled out to the masses I guess.

在撰写本文时,2015 年 7 月 30 日,当前版本仍然是 0.12.7,所以我猜 x.8 尚未向大众推出。

回答by Ron Michael

Avast Antivirus is the culprit in my case. Disabling it allowed the installation to complete successfully.

Avast Antivirus 是我的罪魁祸首。禁用它允许安装成功完成。

Additional background on how Avast messes this up is available in this answer.

此答案中提供了有关 Avast 如何搞砸的其他背景知识。

回答by Thomas D

Installing without the Performance countersfeature made the installation work. All credits go to joaocgreisfor the comment on the NodeJS GitHub issue tracker.

没有该Performance counters功能的安装使安装工作。所有学分都归于 joaocgreisNodeJS GitHub 问题跟踪器的评论

回答by paul

I had this error on Windows 7 x64 (node-v0.10.28-x64.msi) and was able to install by choosing not to install the "Online documentation shortcuts" during the Custom Setup part of the installation. Select "Entire feature will be unavailable".

我在 Windows 7 x64 (node-v0.10.28-x64.msi) 上遇到了这个错误,并且能够通过在安装的自定义安装部分选择不安装“在线文档快捷方式”进行安装。选择“整个功能将不可用”。

enter image description here

在此处输入图片说明

None of the other solutions worked for me, but I did install as admin and log the output. The logs were not helpful (reported a FatalError, not much else).

其他解决方案都不适合我,但我确实以管理员身份安装并记录了输出。日志没有帮助(报告了一个致命错误,其他的不多)。

Credit where credit's due - I found the answer here: https://github.com/joyent/node/issues/4516

信用到期 - 我在这里找到了答案:https: //github.com/joyent/node/issues/4516

回答by devdigital

I was having the same issue, I ran the msi from an admin command prompt with the logging option:

我遇到了同样的问题,我从带有日志记录选项的管理员命令提示符运行了 msi:

node-v0.12.4-x64.msi /lxv C:\Nodejs.log

Inspecting the log showed the following error:

检查日志显示以下错误:

Product: Node.js -- Error 1714. The older version of Node.js cannot be removed. Contact your technical support group. System Error 1612.

产品:Node.js -- 错误 1714。无法删除旧版本的 Node.js。请联系您的技术支持小组。系统错误 1612。

Node.js was not listed under Program and Features though, so I ran the Program Install and Uninstall troubleshooter tool(select Run now) at the following site:

尽管 Node.js 没有列在 Program and Features 下,所以我在以下站点运行了Program Install and Uninstall 疑难解答工具(选择Run now):

https://support.microsoft.com/en-us/mats/program_install_and_uninstall

https://support.microsoft.com/en-us/mats/program_install_and_uninstall

Stepping through the wizard, selecting the 'trouble with uninstalling' option. The tool then listed 'Node.js' as an installed program. Selecting Node.js and finishing the wizard successfully removed Node.js.

逐步完成向导,选择“卸载时遇到问题”选项。然后该工具将“Node.js”列为已安装的程序。选择 Node.js 并完成向导成功删除 Node.js。

I then ran the msi again from an admin command prompt and the node install succeeded.

然后我从管理员命令提示符再次运行 msi,节点安装成功。

回答by MDIT

I had the same problem with node 7.1.0-x64 Windows 7 64-bit.

我在 node 7.1.0-x64 Windows 7 64 位上遇到了同样的问题。

I found that there was

我发现有

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\_V2Providers\{1e2e15d7-3760-470e-8699-b9db5248edd5}

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\_V2Providers\{1e2e15d7-3760-470e-8699-b9db5248edd5}

in the register on my computer. After I had deleted this entry, node installation passed fine.

在我电脑上的寄存器中。删除此条目后,节点安装顺利通过。

This videoshow all the steps to follow.

视频显示了要遵循的所有步骤。

回答by Nikhil Ranjan

I was try to install node-v8.1.4-x64.msi many times in window7 and finally successful. Please follow below step:--

我尝试在window7中多次安装node-v8.1.4-x64.msi,最后成功。请按照以下步骤操作:--

step 1:- goto run and type "regedt32.exe".

step 2:- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib

step 3:- delete it (may be some file are not deleted but all folder s/b delete)

step 4:- Re-install it (Double click on .msi file)

step 5:- Hope this will intalled.

第 1 步:- 转到运行并键入“regedt32.exe”。

步骤 2:- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib

第 3 步:- 删除它(可能是某些文件未删除,但所有文件夹 s/b 删除)

第 4 步:- 重新安装(双击 .msi 文件)

第 5 步:- 希望这会安装。

回答by Avisek Ghosh

I also faced it turns out its a problem of windows event log service. First check if Windows Event Log service is on or not. If not started then to fix it, rename or delete the C:\Windows\System32\LogFiles\WMI\RtBackup folder in safemode.

我也遇到过,原来是 Windows 事件日志服务的问题。首先检查 Windows 事件日志服务是否开启。如果没有启动然后修复它,在安全模式下重命名或删除 C:\Windows\System32\LogFiles\WMI\RtBackup 文件夹。

Hope it helps

希望能帮助到你

回答by Dmytro Pastovenskyi

I did not figure out what was the problem, I just copied installed version and update system variable PATH with path to my node.js and it worked well.

我没有弄清楚是什么问题,我只是复制了已安装的版本并使用 node.js 的路径更新系统变量 PATH 并且它运行良好。

回答by Zach Saucier

I wasn't able to install it the regular way, but I ended up successfully installing it using Chocolatey(a Machine Package Manager built with Windows in mind) and then the nodejs package.

我无法以常规方式安装它,但我最终使用Chocolatey(一个使用 Windows 构建的机器包管理器)和nodejs package成功安装了它。