如何修复安装node.js时kb2919355的依赖问题?

问题描述 投票:0回答:1

我尝试为运行 x64 的 Windows 安装 Node.js v20.13.1 (LTS) 版本,并在安装程序打开的 PowerShell 终端中收到此错误:

WARNING: 'choco' was found at 'C:\ProgramData\chocolatey\bin\choco.exe'.
WARNING: An existing Chocolatey installation was detected. Installation will not continue. 
This script will not overwrite existing installations. If there is no Chocolatey installation at 'C:\ProgramData\chocolatey', delete the folder and attempt the installation again.
Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself.
If the existing installation is not functional or a prior installation did not complete, follow these steps:
- Backup the files at the path listed above so you can restore your previous installation if needed.
- Remove the existing installation manually.
- Rerun this installation script.
- Reinstall any packages previously installed, if needed (refer to the lib folder in the backup).
Once installation is completed, the backup folder is no longer needed and
can be deleted.
Chocolatey v2.2.2
Upgrading the following packages:
python;visualstudio2019-workload-vctools
By upgrading, you accept licenses for the packages.
python v3.12.3 is the latest version available based on your source(s).
visualstudio2019-workload-vctools is not installed. Installing...
[NuGet] One or more unresolved package dependency constraints detected in
the Chocolatey lib folder. All dependency constraints must be resolved to
add or update packages. If these packages are being updated this message
may be ignored, if not the following error(s) may be blocking the current
package operation: 'python 3.12.3 constraint: python3 (= 3.12.3)'
Unable to resolve dependency 'kb2919355': Unable to find a version of
'kb2919355' that is compatible with 'dotnetfx 4.7.2.20180712 constraint:
kb2919355 (>= 1.0.20160915)', 'KB2999226 1.0.20161023 constraint: kb2919355
(>= 1.0.20160915)', 'vcredist140 14.0.23026 constraint: kb2919355 (>=
1.0.20160915)', 'visualstudio2019buildtools 16.0.0 constraint: kb2919355
(>= 1.0.20160915)'.
Chocolatey upgraded 0/2 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- visualstudio2019-workload-vctools - Unable to resolve dependency
'kb2919355': Unable to find a version of 'kb2919355' that is compatible
with 'dotnetfx 4.7.2.20180712 constraint: kb2919355 (>= 1.0.20160915)',
'KB2999226 1.0.20161023 constraint: kb2919355 (>= 1.0.20160915)',
'vcredist140 14.0.23026 constraint: kb2919355 (>= 1.0.20160915)',
'visualstudio2019buildtools 16.0.0 constraint: kb2919355 (>=
1.0.20160915)'.

要安装 node.js,我访问 https://nodejs.org/en/download 并为相应字段选择了 v20.13.1 (LTS)、Windows 和 x64。接下来,我转到“下载”文件夹,双击下载的 Windows Installer,然后单击,接受协议,允许在默认选择的文件夹中安装,选择下载 Node.js 运行时,并选中自动安装必要的工具。我收到一个对话框,显示 Node.js 向导已成功安装,然后打开一个终端。我单击 Enter,然后根据提示单击任意键,并允许 Windows PowerShell 根据需要进行更改。然后就出现了上面的错误。为了解决这个问题,我尝试查看指定软件的版本是否与 kb2919355 的版本兼容,但发行说明中没有任何帮助。另外,我尝试安装kb2919355,发现已经安装了,然后我尝试升级它,已经是最新版本了。最后,我尝试使用安装程序卸载并重新安装它,但这并没有改变结果。

node.js failed-installation
1个回答
-1
投票

你修好了吗?我现在正在经历

© www.soinside.com 2019 - 2024. All rights reserved.