Not able to install socket.io on Windows server 2012 - node.js

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.

Related

Steps do I have to take to make IISExpress to run the iisnode when IISExpress is run from Visual Studio

Here are the technologies used in my work environment:
-Node JS version 8.10.0 win x64
-Visual Studio 2015 Community Update 3
-iisnode v0.22.1 x64
-IIS Express
When I installed iisnode, the iisnode configuration was located here:
C:\Program Files\iisnode\www\configuration\web.config
Within C:\Program Files\iisnode\www , there are directories ( one directory for each node application )
I created an ASP.NET MVC solution in Visual Studio.
Now when I run the aforementioned ASP.NET MVC solution in Visual Studio, the IISExpress will properly deploy and run the solution.
However, how can I configure IISExpress to run the iisnode that was installed? What steps do I have to take to make IISExpress to run the iisnode when IISExpress is run from Visual Studio?
The documentation says
Installing for IIS 7.x/8.x
* Install iisnode for IIS 7.x/8.x: x86 or x64 - choose bitness matching your system
* To set up samples, from the administrative command prompt call %programfiles%\iisnode\setupsamples.bat
* Go to http://localhost/node
Installing for IIS Express/WebMatrix
* Install WebMatrix using the Web Platform Installer
* Open WebMatrix, choose “Site from folder”, enter %localappdata%\iisnode\www, start the site, and play with the iisnode
samples, or
* Use node.js templates to get started quickly with an Express application or a skeleton Hello World
But WebMatrix is already end of life. So you need to manually create a site on IIS Express instead (or use a tool like Jexus Manager).
There does not seem to be any Visual Studio integration mentioned though.

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.

Node.js error (could not find) while creating Hybrid app in visual studio 2013

I have done fresh installation of Visual Studio 2013 - update 3 and have installed Visual studio 2013 MDA (Multi Device Application), and also have installed setup for Node js..
But when I create New Hybrid - Application project it shows me an error of "Node.js cannot be found"
Please help me..
You need to have NodeJS installed on your system.
Get the installer from this page: http://nodejs.org/download/
After installation you should also check if node command is usable the command line (cmd).
If it's not available you will need to manually add NodeJS to your path.

Error on installing karma test runner

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.

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