nodejs version may 28 dev version

node server.js
Started http server.
info - socket.io started

/var/aegir/platforms/7/modules/all/nodejs/node_modules/express/node_modules/connect/lib/proto.js:104
, fqdn = ~req.url.indexOf('://')
^
TypeError: Cannot read property 'url' of undefined
at Function.handle (/var/aegir/platforms/7/modules/all/nodejs/node_modules/express/node_modules/connect/lib/proto.js:104:18)
at Server.app (/var/aegir/platforms/7/modules/all/nodejs/node_modules/express/node_modules/connect/lib/connect.js:66:31)
at Server.serverListening (/var/aegir/platforms/7/modules/all/nodejs/node_modules/socket.io/node_modules/policyfile/lib/server.js:136:16)
at Server.g (events.js:156:14)
at Server.emit (events.js:64:17)
at Array.0 (net.js:777:10)
at EventEmitter._tickCallback (node.js:190:38)
aegir@devmac:~/p/7/m/all/nodejs$ npm -v
1.1.24
aegir@devmac:~/p/7/m/all/nodejs$ node -v
v0.6.19

Comments

miroslavbanov’s picture

Incompatibility with newer version of express module. See http://drupal.org/node/1537702 for solution.

socialnicheguru’s picture

yes this was it:

http://drupal.org/node/1537702#comment-5889960

So to properly install the correct dependencies, go to the folder that contains server.js, nodejs.config.js, package.json.
run:
npm install
npm uninstall express
npm install express@2.5.9

Anonymous’s picture

Status: Active » Fixed

committed a fix for package.json:

http://drupalcode.org/project/nodejs.git/commit/fc1c9b2

thanks all!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.