Closed
Description
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.
E:\GitHub\jquery-mobile>npm install
npm http GET https://registry.npmjs.org/jquery
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/grunt-qunit-junit
npm http 304 https://registry.npmjs.org/jquery
npm http 304 https://registry.npmjs.org/grunt-qunit-junit
npm http 304 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/location/0.0.1
npm http GET https://registry.npmjs.org/htmlparser/1.7.6
npm http GET https://registry.npmjs.org/jsdom
npm http GET https://registry.npmjs.org/xmlhttprequest
npm http GET https://registry.npmjs.org/navigator
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/htmlparser/1.7.6
npm http 304 https://registry.npmjs.org/jsdom
npm http 304 https://registry.npmjs.org/location/0.0.1
npm http 304 https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/navigator
npm http 304 https://registry.npmjs.org/xmlhttprequest
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/cssom
npm http GET https://registry.npmjs.org/cssstyle
npm http 304 https://registry.npmjs.org/bindings
> contextify@0.1.6 install E:\GitHub\jquery-mobile\node_modules\jquery\node_modu
les\contextify
> node-gyp rebuild
E:\GitHub\jquery-mobile\node_modules\jquery\node_modules\contextify>node "D:\nod
ejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.
js" rebuild
npm http 304 https://registry.npmjs.org/cssom
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/cssstyle
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua
l Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere. [E:\GitHub\jquery-mobile\node_modules\jquery\node_modu
les\contextify\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "D:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\
bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\GitHub\jquery-mobile\node_modules\jquery\node_modules\contextify
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
npm ERR! Error: ENOENT, open 'E:\GitHub\jquery-mobile\node_modules\jquery\node_m
odules\jsdom\node_modules\cssstyle\lib\properties\borderLeftStyle.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\nodejs\\\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "install"
npm ERR! cwd E:\GitHub\jquery-mobile
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.3.5
npm ERR! path E:\GitHub\jquery-mobile\node_modules\jquery\node_modules\jsdom\nod
e_modules\cssstyle\lib\properties\borderLeftStyle.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! weird error 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! E:\GitHub\jquery-mobile\npm-debug.log
npm ERR! not ok code 0
Activity
chinmayrane commentedon Dec 3, 2013
Were yo able to close this?
JayBeavers commentedon Dec 6, 2013
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.
k-j-kleist commentedon Dec 20, 2013
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.
chinmayrane commentedon Dec 20, 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?
k-j-kleist commentedon Dec 20, 2013
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...
k-j-kleist commentedon Dec 20, 2013
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.
chinmayrane commentedon Dec 20, 2013
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?
k-j-kleist commentedon Dec 20, 2013
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.
chinmayrane commentedon Dec 20, 2013
Hahah. Windows is as Important as PHP. :P
knightuniverse commentedon Mar 27, 2015
I met the same problem, and I already have VS 2013 Express installed. No way I'll reinstall 2013. I hate windows.
joshbedo commentedon Jul 1, 2015
+1 to hating windows, i can't get this to work even after installed visual studio 2015 express.
Hao-Wu commentedon Jul 2, 2015
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.
71 remaining items
znnnnn commentedon May 28, 2019
This saved me
BartusZak commentedon Jul 3, 2019
Have used

npm install --global --production windows-build-tool
and is freezed for about 1h
oshihirii commentedon Jul 14, 2019
@BartusZak - i am currently in the 'frozen' stage - does it ever end? and does installation complete successfully?
d3x0r commentedon Jul 14, 2019
@oshihirii Reboot; the VS install had a 'needs to reboot to finish' and nothing reports that.
oshihirii commentedon Jul 14, 2019
@d3x0r - thanks, after 2 hours i restarted, unfortunately errors persist.
Overall, these were my steps:
npm install --global --production windows-build-tools
and restarted after 2 hoursBelow are global packages:
I am still getting the following errors when trying to install
ibm-watson
:oshihirii commentedon Jul 14, 2019
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
ibm-watson
and am getting the same error messages.The error when installing
windows-build-tools
seems to be acknowledged here:felixrieseberg/windows-build-tools#152
Edit
I also tried alternative solution here:
But still have same errors when installing
ibm-watson
re:node-gyp
anderror MSB3428: Could not load the Visual C++ component "VCBuild.exe"
.The only thing that worked for me (ie made the
"VCBuild.exe"
errors go away) was installing:cclauss commentedon Jul 14, 2019
Holy Moley! Is anyone worried about the 402 high risk vulnerabilities?
ghost commentedon Jan 7, 2020
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.
collectivecloudperu commentedon Apr 4, 2020
Also the solution for me was to install NET Framework 2.0 Software Development Kit (SDK) .
xermus commentedon May 2, 2020
Just to let you know how it worked for me:
npm install --global --production windows-build-tools
did the job, but only after I rebooted Windows. I ran the command using Powershell as local Administrator.
ghost commentedon May 26, 2020
Thank you @xermus - this also worked for me without having to install the behemoth of Visual Studio Community!
kamalhm commentedon Jul 14, 2020
weird, it worked for me but I dont use the --production flag
npm install --global windows-build-tools
Randyshu2018 commentedon Jul 22, 2020
it works for me ,thank you!
ghost commentedon Apr 12, 2021
npm install -g --production windows-build-tools
PowerShell administrator