-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". #307
Comments
Were yo able to close this? |
Do you have Visual Studio with a C++ compiler installed?
basically says "you don't have a c++ compiler installed'. You can install Visual Studio with just Visual Basic or C# so you can see this error even when VS is installed. I would suggest installing Visual Studio Express 2013 for Windows Desktop. This comes with the C++ compiler by default. |
I get a similar error when trying "npm install msgpack":
Windows 7 / 64 bit, I do have installed "Microsoft Windows SDK for Windows Server 2008" as well as Visual Studio 2013. |
Had to install Microsoft Visual Studio Express. Essentially now I have to install Python and Visual Studio for running Node modules just because am a Windows user. Where is Ryan? |
Although I installed "Microsoft Windows SDK for Windows Server 2008", node-gyp is using "C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe" which is part of Visual Studio 2013. http://blogs.msdn.com/b/visualstudio/archive/2013/07/24/msbuild-is-now-part-of-visual-studio.aspx Sigh... |
Giving up on this as for now! According to #343 support for Visual Studio 2013 is in work, so I'll be patient rather than waste time trying to find out why node-gyp pukes on me. |
Are you getting the same error again, I installed Visual Studio 2010 Express Edition and viola, the errors went for me! Is it the Python error or the MSBuild.exe Error? |
Microsoft recommends installing VS 2010 before VS 2013. No way that I'll uninstall 2013, install 2010, then reinstall 2013... Will do development on Linux for this time. |
Hahah. Windows is as Important as PHP. :P |
I met the same problem, and I already have VS 2013 Express installed. No way I'll reinstall 2013. I hate windows. |
+1 to hating windows, i can't get this to work even after installed visual studio 2015 express. |
I closed this issue because I left Windows and switched to Mac OS X as my development env. Since the issue still exists per above comments, re-open this issue. |
@Hao-Wu Yeah i typically use my Mac but the hard drive started failing so i switched over to my windows machine. So i figured out the problem, I installed Visual Studio for the Web which doesn't include a C++ compiler. I uninstalled that version and installed the community version.. now everything seems to be working fine. |
I also had this problem because I had VS 2013 Express for Web installed, which doesn't include the C++ compilers. However, the Windows 7 64-bit SDK does include the C++ compiler (but you have to pick it during the installation process). |
I have this issue. Can't I just use MinGW compiler or sometihing? |
Installing Visual Studio Community Edition (2015) with Visual C++ selected in the install solved the issue for me on Windows 8.1. |
I can confirm @JeffreyBPetersen 's fix, combined with setting "npm config set msvs_version 2015 --global" in the command line solved the issue for me. Though I tried every other way possible without having to install 8 gigs worth of a program I'll never use first....seems excessive. |
This occurs when I am going to install socket.io . How to solve it? C:\try1>npm install --save socket.io@1.3.7
C:\try1\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modul
C:\try1\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modul
| .io-client\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config |
I, too, just ran into this. Installing VS2015 now. --- fixed it |
me too, same error happened when typing command: npm start |
After running into this error when trying to use Foundation 6's build tool I founf this thread and just spent like an hour installing 11gb of god knows what that I don't need from the community edition. Then I found this thread karma-runner/karma#536 It seems like the issue here is that the error message is totally misleading. It probably should be a warning not an error, it should probably mention that it's optional and there is a fallback, and it should probably be updated with correct current advice for those who might actually want to install the C++ runtime. It seems like the errors also caused the installation of node modules to be halted, so I did have to run "npm install" in the folder to get things set up. If i'm wrong then maybe it is essential for some uses, but either way the error message should probably be updated. |
I'm getting the same problem here. I can't understand why Windows don't offer a better support for this. I was trying to install a simple package "libxmljs" on a Windows 7 x64, I had initially VS2013 installed + Python27 and it would either complain about MSBuild or something else. Followed a more than a couple of advice, install this uninstall that but no luck. Now I'm trying it from scratch, newly installed W7 with Net Framework 4.5 installed (see error below), no VS installed but I'm trying to figure if full VS is really necessary as I would't need that so waste of space. If so, what version because I had 2013 and even 2015 installed and got loads of error but I could not get that package installed. Any suggestions????Building the projects in this solution one at a time. To enable parallel build, |
@juberjj have you already tried w/ VS2015 (express) installed? |
@black-snow I did indeed and I got the same problem. I had start a new machine altogether with NF 4.5, Python 2.7 and MVS 2013 (all fresh installation). Node version is 0.10.30 and NPM 1.4.21, but errors would also occur with versions 4.4.2 and 5.3.0. Also installing a package like libxml-xsd (which I was able to install) MVS spills loads of warning messages, funnily enough I had the same package installed on Ubuntu 16.0 and I had no problem whatsoever. |
@juberjj What now, did you use VS 2013 or 2015? |
npm install --global --production windows-build-tools |
I tried to above suggested I finally managed to get this working by installing Node.js 8 instead of Node.js 10. I hope this might save someone some debugging time. |
Installing Visual Studio helped me while |
Worked for me too ! Thanks |
Got error installing in that order and it worked. |
Ran into this problem on another system.... found solution in this reply (after trying many others) #307 (comment)
without installing community IDE. |
it's not googlable. I took ages to find this. |
Likely obvious to some, but you can only fix by But even if you have the correct file on you system somewhere, permissions can prevent config from working. So only do that as a last resort. I recommend trying this first: |
boggles the mind .. i'm trying to write a bloody html/javascript/css application, why do i need c# ? |
|
If you are using Windows 10 then try to run commands in PowerShell instead of Command Prompt. |
This saved me |
@BartusZak - i am currently in the 'frozen' stage - does it ever end? and does installation complete successfully? |
@oshihirii Reboot; the VS install had a 'needs to reboot to finish' and nothing reports that. |
@d3x0r - thanks, after 2 hours i restarted, unfortunately errors persist. Overall, these were my steps:
Below are global packages:
I am still getting the following errors when trying to install
|
update: i read that uninstalling python might stop the problem with the install "freezing" (link). so i uninstalled python from windows > remove programs and then ran:
which produced:
and uninstalled and re-installed The error when installing felixrieseberg/windows-build-tools#152 Edit I also tried alternative solution here:
But still have same errors when installing The only thing that worked for me (ie made the
|
Holy Moley! Is anyone worried about the 402 high risk vulnerabilities? |
Note: be aware that the .NET 2.0 SDK installation is SILENT. So there's no UI neither a message, you will think it did nothing but after a few minutes just try your npm install again and it should work. |
Also the solution for me was to install NET Framework 2.0 Software Development Kit (SDK) . |
Just to let you know how it worked for me:
did the job, but only after I rebooted Windows. I ran the command using Powershell as local Administrator. |
Thank you @xermus - this also worked for me without having to install the behemoth of Visual Studio Community! |
weird, it worked for me but I dont use the --production flag
|
it works for me ,thank you! |
PowerShell administrator |
This occurs when I am trying to build jquery mobile. However, I can still build it successfully with the error. Please see logs for reference.
The text was updated successfully, but these errors were encountered: