node.js - “ choco install visualstudio2017-workload-vctools” 失败错误:visualstudio2017-workload-vctools 的安装不成功
问题描述
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.
解决方案
看起来您的 visualstudio 安装程序已过时。
尝试升级安装程序
“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe”
然后(作为管理员)
choco upgrade -y visualstudio2017-workload-vctools
推荐阅读
- javascript - 获取应用于元素的 CSS 变量
- excel - 使用 VBA 从 EXCEL 导出到 Access
- linux - 如何遍历目录的文件夹?
- telegram - 获取 Telegram 频道的所有参与者
- python-3.x - 如何删除行名为 None 的空行
- reactjs - 在 React with jsPDF 中在浏览器中打开生成的 PDF
- vuetify.js - 如何在没有不透明度选项的 HEX 模式下使用 Vuetify 颜色选择器(v-color-picker)
- go - 如何在自定义类型上构建堆
- python-3.x - 卷曲工作,但 Python 请求失败
- java - JAVA中InputSource到字符串的转换