【发布时间】:2013-09-07 16:05:41
【问题描述】:
我有带有 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 正在搜索它?还是我错过了什么?
我该如何解决这个错误?
【问题讨论】:
-
问题是 vcbuild.exe 在 Visual Studio 2010 中不存在,那么为什么 node-gyp 会搜索它?
标签: visual-studio-2010 msbuild node-gyp