visual-studio-2010 - 错误 MSB3411 : Could not l oad the Visual C++ component "VCBuild.exe"

标签 visual-studio-2010 msbuild node-gyp

我有带有 SP1 和 Windows sdk 7.1 的 Visual Studio 2010。
我也有 VS2012 和 Windows kit 8。

当我运行时 Windows SDK 7.1 Command Prompt并运行 node-gyp build --msvs_version=2010它给了我错误:

error MSB3411: Could not load the Visual C++ component "VCBuild.exe". 
If the component is not installed,
either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Fr
amework 3.5, or 2) install Microsoft Visual Studio 2008.

是否正在尝试查找 VCBuild.exe。

我发现 vcbuild has been replaced with msbuild .

这是一个有效的错误吗?

我还发现在 Windows 7 中,对于 .NET 3.5,您只需要从控制面板打开它。我查看过有关 stackoverflow 的其他问题,例如 herethis .

但问题是,由于 vcbuild.exe 在带有 vs2010 的系统中不存在,那么为什么 node-gyp 正在搜索它?或者我错过了什么?

我如何解决这个错误?

最佳答案

以下内容对我有用(截至 2014 年 6 月),如 here 中所述.

  • 安装免费的 Visual Studio Express 2013 for Windows(不是 VS Express 2013 for Web)
  • npm install --msvs_version=2013

  • 否则,我花了很多时间安装旧的 Microsoft 软件包和补丁,但没有帮助。

    关于visual-studio-2010 - 错误 MSB3411 : Could not l oad the Visual C++ component "VCBuild.exe",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18608928/

    相关文章:

    C# 孙项目 DLL 未包含在 msbuild 包中

    visual-studio-2010 - 部署时找不到 MSBuild 目标 PipelinePreDeployCopyAllFilesToOneFolder

    c++ - mac 上的 node-gyp 构建错误 "calling a protected constructor of class ' v8::HandleScope'"

    wpf - 如何加快 Visual Studio 2010 文本编辑器的渲染速度?

    c# - 如何连接到 MDF 数据库文件?

    c++ - 试图让 MongoDB 驱动程序在 Visual Studio 2010 C++ 中工作

    c# - 根据特定条件在列表末尾移动列表项的有效方法

    azure - Visual Studio 构建 - Azure 2.9 SDK

    c++ - OSX 10.8 上 -stdlib=libc++ 的无效部署目标

    javascript - 未捕获的node.js错误, undefined symbol : _ZN2v811HandleScopeC1Ev