Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9120387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:36:59+00:00 2026-06-17T05:36:59+00:00

Installation of socket.io package on Windows 7 x64 bit environment over Express 3.x gives

  • 0

Installation of socket.io package on Windows 7 x64 bit environment over Express 3.x gives me very hard time.

I had to sort out tens or compilation errors and I had to install the following Windows 7 package for the installation process output no error:

  • Cygwin C++ compiler
  • Cygin C++ extra-library
  • Microsoft Visual Studio 2010 Express
  • Microsoft .NET Framework v2.0
  • Microsoft Performance Toolkit Microsoft Windows SDK 7.1
  • Microsoft Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1.

(Visual Studio compiler gives me a warning C4267 (see bellow))

Despite of that correct installation I still have client side error:

Error: io is not defined
var socket = io.connect('/');

I followed the recommendation for socket.io.js to be served by nodejs server with app.js:

var express = require('express')
    , http = require('http');

var app = express();
var server = http.createServer(app);
var io = require('socket.io').listen(server);

Client side decalaration in jade file is :

script(src='/socket.io/socket.io.js')

And my client script section for socket.io is :

var socket = io.connect('/');

socket.io is installed into the node-login directory which is where are located my app/public and app/server directories.

socket.io installation log:

D:\dev\node-login>npm install socket.io
npm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/socket.io-client/0.9.11
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/base64id/0.1.0
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.11
npm http 304 https://registry.npmjs.org/base64id/0.1.0
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http 304 https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/options

> ws@0.4.25 install D:\dev\node-login\node_modules\socket.io\node_modules\socket
.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)


D:\dev\node-login\node_modules\socket.io\node_modules\socket.io-client\node_modu
les\ws>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\no
de_modules\node-gyp\bin\node-gyp.js" rebuild
  bufferutil.cc
..\src\bufferutil.cc(55): warning C4267: 'initializing' : conversion from 'size
_t' to 'unsigned int', possible loss of data [D:\dev\node-login\node_modules\so
cket.io\node_modules\socket.io-client\node_modules\ws\build\bufferutil.vcxproj]
..\src\bufferutil.cc(66): warning C4267: 'initializing' : conversion from 'size
_t' to 'unsigned int', possible loss of data [D:\dev\node-login\node_modules\so
cket.io\node_modules\socket.io-client\node_modules\ws\build\bufferutil.vcxproj]
C:\Users\Vivaldi\.node-gyp\0.8.17\deps\v8\include\v8.h(183): warning C4506: no
definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Ha
ndle<T>)' [D:\dev\node-login\node_modules\socket.io\node_modules\socket.io-clie
nt\node_modules\ws\build\bufferutil.vcxproj]
          with
          [
              T=v8::Object
          ]
     Creating library D:\dev\node-login\node_modules\socket.io\node_modules\soc
  ket.io-client\node_modules\ws\build\Release\bufferutil.lib and object D:\dev\
  node-login\node_modules\socket.io\node_modules\socket.io-client\node_modules\
  ws\build\Release\bufferutil.exp
  Generating code
  Finished generating code
  bufferutil.vcxproj -> D:\dev\node-login\node_modules\socket.io\node_modules\s
  ocket.io-client\node_modules\ws\build\Release\\bufferutil.node
  validation.cc
C:\Users\Vivaldi\.node-gyp\0.8.17\deps\v8\include\v8.h(183): warning C4506: no
definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Ha
ndle<T>)' [D:\dev\node-login\node_modules\socket.io\node_modules\socket.io-clie
nt\node_modules\ws\build\validation.vcxproj]
          with
          [
              T=v8::Object
          ]
     Creating library D:\dev\node-login\node_modules\socket.io\node_modules\soc
  ket.io-client\node_modules\ws\build\Release\validation.lib and object D:\dev\
  node-login\node_modules\socket.io\node_modules\socket.io-client\node_modules\
  ws\build\Release\validation.exp
  Generating code
  Finished generating code
  validation.vcxproj -> D:\dev\node-login\node_modules\socket.io\node_modules\s
  ocket.io-client\node_modules\ws\build\Release\\validation.node
socket.io@0.9.13 node_modules\socket.io
+-- base64id@0.1.0
+-- policyfile@0.0.4
+-- redis@0.7.3
+-- socket.io-client@0.9.11 (xmlhttprequest@1.4.2, uglify-js@1.2.5, active-x-obf
uscator@0.0.1, ws@0.4.25)

D:\dev\node-login>

Why the client can’t find socket.io.js?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:37:01+00:00Added an answer on June 17, 2026 at 5:37 am

    Answered here: https://github.com/LearnBoost/socket.io/issues/944

    Change this

    var server = http.createServer(app);
    

    into this

    var server = http.createServer(app).listen( 3000 );
    

    Also I’m really surprised that you had such a pain to install it. I agree there is more pain to install various web related things on windows then linux, but node and all packages coming with it is NOT one of those. At least I had no problems with it, simple installation and then packages management via nmp makes it as easy as it would be on linux.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

while installation of IO::Pty package at windows vista getting below error: C:/MinGW/msys/1.0/lib/perl5/5.8/msys/CORE/perl.h:925:27: fatal error:
Upon installation of a Windows Service, an application is using a custom action to
The installation for clearance seems very straight forward ( https://github.com/thoughtbot/clearance ). I'm following in
For installation of my Windows desktop application I create an installer using izpack and
I have a freshly built 64-bit Windows Server 2008 R2 box that I have
I want to use same database dir on my ubuntu installation as of windows
This does not work with my PHP 5.3.3 installation on WAMP / Windows 7:
I'm trying to install now.js on Windows using the node package manager but I
I've installed NodeJs and tried to install Socket.io Socket.io installation fails consecutively. I've tried
I have a c# application that runs as a windows service controlling socket connections

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.