Node.js &引用;choco安装visualstudio2017工作负载vctools“;失败错误:visualstudio2017工作负载vctools的安装未成功

Node.js &引用;choco安装visualstudio2017工作负载vctools“;失败错误:visualstudio2017工作负载vctools的安装未成功,node.js,npm,installation,visual-studio-2017,choco,Node.js,Npm,Installation,Visual Studio 2017,Choco,您的visualstudio安装程序似乎已过期 尝试升级安装程序 “C:\Program Files(x86)\Microsoft Visual Studio\Installer\vs\u Installer.exe” 然后(作为管理员) choco升级-y visualstudio2017工作负载vctools 使用choco升级-y visualstudio2019工作负载vctools我尝试intsall node.js并出现此错误我遇到此错误:无法检测任何受支持的Visual Studi

您的visualstudio安装程序似乎已过期

尝试升级安装程序

“C:\Program Files(x86)\Microsoft Visual Studio\Installer\vs\u Installer.exe”

然后(作为管理员)

choco升级-y visualstudio2017工作负载vctools


使用
choco升级-y visualstudio2019工作负载vctools

我尝试intsall node.js并出现此错误我遇到此错误:无法检测任何受支持的Visual Studio产品。您可以尝试传递--installPath或同时传递--productId和--channelId参数。visualstudio2017工具的升级未成功。运行“C:\ProgramData\Chocolate\lib\visualstudio2017工作负载vctools\tools\ChocolateyInstall.ps1”时出错。有关详细信息,请参阅日志。在两个步骤之间重新启动我的电脑以清除空闲安装实例。这消除了我在尝试运行“choco升级-y visualstudio2017工作负载vctools”时看到的错误。太好了!以管理员身份运行CMD
C:\WINDOWS\system32>choco install visualstudio2017-workload-vctools
Chocolatey v0.10.15
Installing the following packages:
visualstudio2017-workload-vctools
By installing you accept licenses for the packages.
Progress: Downloading visualstudio2017-workload-vctools 1.3.2... 100%

visualstudio2017-workload-vctools v1.3.2 [Approved]
visualstudio2017-workload-vctools package files install completed. Performing other installation steps.
The package visualstudio2017-workload-vctools 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/[A]ll - yes to all/[N]o/[P]rint): a

ERROR: Unable to detect any supported Visual Studio product. You may try passing --installPath or both --productId and --channelId parameters.
The install of visualstudio2017-workload-vctools was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2017-workload-vctools\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
 - visualstudio2017-workload-vctools (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2017-workload-vctools\tools\ChocolateyInstall.ps1'.
 See log for details.