我有带有 SP1 和 Windows sdk 7.1 的 Visual Studio 2010。我也有 VS2012 和 Windows 套件 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。
这是一个有效的错误吗?
我还发现,在 Windows 7 中,对于 .NET 3.5,您只需从控制面板打开它。我已经查看了有关 stackoverflow 的其他问题,例如此处和此。
但问题是,既然 vcbuild.exe 在带有 vs2010 的系统中不存在,那么为什么 node-gyp 正在搜索它呢?还是我错过了什么?
我该如何解决这个错误?