【问题标题】:Cannot install dependencies that requires VCBuild.exe无法安装需要 VCBuild.exe 的依赖项
【发布时间】:2015-12-01 09:59:28
【问题描述】:

我正在尝试在 Windows 7 机器上使用 npm install 安装依赖项。我收到以下错误消息:

MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
 To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. 

我安装了 .NET Framework 2.0 SDK,但错误仍然存​​在,而且确实 VCBuild.exe 没有出现在 .NET 目录结构中的任何位置。

我在这台机器上没有 Visual Studio(任何老式的),我不想为此付费。

我该如何解决这个问题?

【问题讨论】:

  • 旧版本的 Visual C++ Express 可能有这个,但 VCBuild 已经死了,你应该摆脱它并使用 MSBuild。
  • @LexLi 我在我的 .NET 框架安装中也找不到 MSBuild。

标签: .net node.js visual-studio npm


【解决方案1】:

你做了错误提到的所有事情吗? (1 和 2 / (或/和) 3)

要解决此问题,1) 安装 .NET Framework 2.0 SDK,2) 安装 Microsoft Visual Studio 2005 或 3) 如果组件安装在其他位置,则将其位置添加到系统路径。

【讨论】:

  • 我把它读作 1、2 或 3。是什么让你认为它是(1 和 2)或 3?