express icon indicating copy to clipboard operation
express copied to clipboard

Express "Hello World" Issue

Open masonhugus opened this issue 15 years ago • 4 comments

Got Node (v0.4.1) and Express (1.0.7) installed via npm. Node seems to be working fine with the "hello world" app, but as soon as I try to run a server using the Express example, I get an error. Thoughts?

node.js:116 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Cannot read property 'prototype' of undefined at Object. (/usr/local/lib/node/.npm/express/1.0.7/package/lib/express/server.js:87:44) at Module._compile (module.js:374:26) at Object..js (module.js:380:10) at Module.load (module.js:306:31) at Function._load (module.js:272:10) at require (module.js:318:19) at Object. (/usr/local/lib/node/.npm/express/1.0.7/package/lib/express/index.js:28:31) at Module._compile (module.js:374:26) at Object..js (module.js:380:10) at Module.load (module.js:306:31)

masonhugus avatar Mar 01 '11 21:03 masonhugus

you are trying to use connect 1.0 with express 1.0.7. express 1.x will not work well with node 0.2.x

tj avatar Mar 01 '11 21:03 tj

Sorry, a bit confused by that response. I have node 0.4.x, not 0.2.x.

Based on your observation above, what should I be updating?

masonhugus avatar Mar 01 '11 21:03 masonhugus

Ah nevermind, after reading the google groups, looks like express 1.x is not compatible with node 0.4.x. Sorry for the trouble. Will be looking forward forward to v2!

masonhugus avatar Mar 01 '11 21:03 masonhugus

np :) it did kinda work but yeah it was not meant for 0.4.x support

tj avatar Mar 01 '11 21:03 tj