我有带有 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 的其他问题,例如 here和 this .
但问题是,由于 vcbuild.exe 在带有 vs2010 的系统中不存在,那么为什么 node-gyp 正在搜索它?或者我错过了什么?
我如何解决这个错误?
最佳答案
以下内容对我有用(截至 2014 年 6 月),如 here 中所述.
否则,我花了很多时间安装旧的 Microsoft 软件包和补丁,但没有帮助。
关于visual-studio-2010 - 错误 MSB3411 : Could not l oad the Visual C++ component "VCBuild.exe",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18608928/