错误MSB3411:无法加载Visual C ++组件"VCBuild.exe"; [英] error MSB3411: Could not l oad the Visual C++ component "VCBuild.exe"

查看:639
本文介绍了错误MSB3411:无法加载Visual C ++组件"VCBuild.exe";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Visual Studio 2010 SP1和Windows sdk 7.1. 我也有VS2012和Windows套件8.

I have Visual Studio 2010 with SP1 and Windows sdk 7.1. I also have VS2012 and Windows kit 8.

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

when i run Windows SDK 7.1 Command Prompt and run node-gyp build --msvs_version=2010 it gives me error:

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.

Is it trying to find VCBuild.exe.

我发现 vcbuild已被msbuild取代.

这是一个有效的错误吗?

我还发现,在Windows 7中,对于.NET 3.5,您只需要从控制面板"将其打开.我已经查看了关于stackoverflow的其他问题,例如此处.

I also found that in Windows 7, for .NET 3.5, you just need to turn it on from Control Panel. I have looked at other questions on stackoverflow like here and this.

但是问题是,由于vcbuild.exe在vs2010的系统中不存在,那么node-gyp为什么要搜索它?还是我想念什么?

But issue is that since vcbuild.exe does not exist in system with vs2010 then why does node-gyp is searching for it ? Or am i missing something ?

我该如何解决此错误?

推荐答案

以下内容对我有效(截至2014年6月),如

The following has worked for me (as of June 2014), as described in here.

  • Windows (不是VS Express 2013 for Web)安装免费的Visual Studio Express 2013

  • Install free Visual Studio Express 2013 for Windows (not VS Express 2013 for Web)

npm install --msvs_version = 2013

npm install --msvs_version=2013

否则,我花了很多时间安装旧的Microsoft软件包和修补程序,但没有帮助.

Otherwise, I have spent a lot of time installing old Microsoft packages and patches, and it wasn't helpful.

这篇关于错误MSB3411:无法加载Visual C ++组件"VCBuild.exe";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆