我一直在尝试安装 nodejs,但总是出错。我在 Google 上搜索了所有可能的方法,还用 Ccleaner 清理了系统,删除了临时文件,然后尝试安装,但没有成功。
我一直收到此错误“此 Windows 安装程序包存在问题。无法运行完成此安装所需的 DLL。请联系您的支持人员或软件包供应商”
我尝试更改权限,以便每个人都有完全访问权限,但这也不起作用,即使在注销并登录后重试也是如此。
有人可以帮我吗?
[编辑]
我搜索了 Temp 文件夹并找到了这个错误日志。
Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action ConfigureEventManifestUnregister, entry: ConfigureEventManifestUnregister, library: C:\Windows\Installer\MSI3A1F.tmp === Logging stopped: 09/06/2017 12:30:29 ===
我希望这有助于澄清事实。
[再次尝试通过 chocolatey 安装] 这是我的 CLI 输出
C:\Windows\System32>choco install nodejs.install
Installing the following packages:
nodejs.install
By installing you accept licenses for the packages.
nodejs.install v8.1.0 [Approved]
nodejs.install package files install completed. Performing other
installation steps.
The package nodejs.install wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[N]o/[P]rint): Y
Installing 64 bit version
Installing nodejs.install...
ERROR: Running ["C:\Windows\System32\msiexec.exe" /i
"C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v8.1.0-x64.msi"
/quiet ] was not successful. Exit code was '1603'. See log for possible
error messages.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
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 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- nodejs.install (exited 1603) - Error while running
'C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1'.
See log for details.
这是巧克力碰过的木头。
答案1
更新 Windows
为你的 Windows 版本安装最新的 Windows 安装程序
更新 VisualARQ
安装 32 位和 64 位版本的 VC++ Redistributable
清理你的 Appdata\Local\Temp 并确保你在那里有正确的访问权限
然后,以管理员身份运行安装程序(以管理员模式打开 cmd 并运行 msiexec /i PackName.msi),如果仍然失败,请检查 InstallLog.txt 以获取有关导致错误的确切 .dll 的详细信息。