Error on installing karma test runner - node.js

When I trying to install karma on windows 7. I am getting following message
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. [C:\Users\user\AppData\Roaming\npm\node_modules\karma\
node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\bind
ing.sln]
I installed .NET Framework 2.0 Software Development Kit (SDK) (x86) . still getting same error

Keep
Calm
and
Continue
Using
Karma
Here's the Karma owner's (Vojta Jina) comment on the issue:
this is just optional compilation of native module to speed things up.
Even without native module it will still work.
In any case, not a Karma issue, so closing. If you want to compile
native modules, use linux/mac ;-)
Btw. regarding your getting the same error even after SDK install, possibly VCBuild.exe and/or C++ compiler is not added to path.

Related

Unable to build for Debug|x64 using MSBuild and VC++ Express edition

I have machine with VC++ Express Edition installed. And also .Net frameworks 2-4. I want to use msbuild through command line to build a VC++ project.
Issue is the build runs fine for Configuration=Debug;Platform=Win32 but for Configuration=Debug;Platform=x64 it gives an error that:
"….vcproj" (Clean;Build target) (1) ->
(Clean target) ->
vcbuild.exe : error VCBLD0004: Project ….vcproj' does not contain a configuration called 'Debug|x64'.
However if I view .csproj file directly it does have that configuration. I feel the issue is the missing x64 build tools. But while installing VC++ Express Edition it doesn't give an option to include x64 build tools like you get during complete Visual Studio 2008 installation.
So how can I get around that given that, I can't install a complete VS like there is on development environment because of several restriction.

npm install bcrypt on Windows Server 2012

I'm getting this error when trying to install my node modules for my node server.
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 Visual Studio 2005 or
3) add the location of the component to the system path if it is installed elsewhere.
[C:\inetpub\wwwroot\PearsonRealty- API\node_modules\bcrypt\build\binding.sln]
I've tried to install the .NET Framework 2.0 SDK, but it just exits out and never runs. I can't install Microsoft Visual Studio since I'm on an AWS EC2 instance and I wouldn't have enough space for it. Any help would be awesome, thanks.
You do need to install either VCExpress (preferrably at least 2015) or you can try the experimental VC Build Tools solution which is a smaller install than full-blown VCExpress. Otherwise, if you have one, you can try building on a local Windows machine first and then uploading the compiled addon directory to AWS.

Not able to install socket.io on Windows server 2012

I am trying to install Socket.io on windows server 2012
npm install socket.io
The error that I am getting is
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. [D:\PushNotificationServer\node_modules\socket.io\node
_modules\socket.io-client\node_modules\ws\build\binding.sln]
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. [D:\PushNotificationServer\node_modules\socket.io\node
_modules\socket.io-client\node_modules\ws\build\binding.sln]
socket.io#0.9.6 node_modules\socket.io
├── policyfile#0.0.4
├── redis#0.6.7
└── socket.io-client#0.9.6 (xmlhttprequest#1.2.2, uglify-js#1.2.5, active-x-obfu
scator#0.0.1, ws#0.4.31)
I've installed the framework 2.0 but do I have to buy a licence for visual studio 2005 to install on server? Or is there really a need to install it? Or is there some alternative compiler for server editions?
The reason behind my question is that the same setup done on windows server 2008 does not throw any error. I did not install anything special on windows server 2008.
The problem is with Server 2012 only.
What could be the possible way out?
The only solution that I found to this problem:
----Instead of compiling the binaries on server, do it on local system.
Install all the binaries like Socket.io, express and connect on your local system.
Make sure that all required binaries are compiled and loaded into node_modules folder.
Simply FTP that folder on your server. (Make sure that python 2.7 is installed on server)
run
node server.js //or yourFile.js
and that should work fine.

npm not installing jsdom in Windows

Im building an app in node.js with jQuery, but when I try to execute, it says it couldnt find module jsdom so, even though I dont understand why installing jQuery didnt install this dependency, I run manually npm install jsdom and I get this error message:
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 Visual Studio 2005 or 3) add the location of t he
component to the system path if it is installed elsewhere.
[C:\Sites\myapp\node_modules\jsdom\node_modules\contextify\build\binding.sln]
I tried the first option, but still didnt help. What am I (missing|doing wrong)?
You're not the only one having issues with installing jsdom on windows. You could try these instructions:
http://www.steveworkman.com/node-js/2012/installing-jsdom-on-windows/
or use Cheerio which is easier to install on windows and does a similar job.

Socket.io installation failed | Windows 7 64bit

I have installed NodeJs and the module 'express'. Now I want to istall socket.io, but it doesn't work. I've tried differend NodeJS versions, but all installations failed.
Here is the log: http://pastebin.com/T8ZZRTML
Here is a screenshot: http://www10.pic-upload.de/31.01.13/ld98apo58e.jpg
Looks like a native addon build error. Do you have a proper build environment set up?
Python (v2.7.3 recommended, v3.x.x is not supported)
Microsoft Visual Studio C++ 2010 (Express version works well)
For 64-bit builds of node and native modules you will also need the Windows 7 64-bit SDK
If the install fails, try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first.
If you get errors that the 64-bit compilers are not installed you may also need the compiler update for the Windows SDK 7.1

Resources