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
Comment #1
miroslavbanov commentedIncompatibility with newer version of express module. See http://drupal.org/node/1537702 for solution.
Comment #2
socialnicheguru commentedyes 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
Comment #3
Anonymous (not verified) commentedcommitted a fix for package.json:
http://drupalcode.org/project/nodejs.git/commit/fc1c9b2
thanks all!