javascript - Express framework giving a very strange error -


i'm trying use express in node, install okay, compiled, got npm , installed express with:

npm install express

the problem is, everytime try "require" it, gives me error! take look, simple file app.js as:

var express = require('express'); 

when run it:

tlab065:~/proj/express-server-abstraction> node app.js  node.js:116         throw e; // process.nexttick error, or 'error' event on first tick         ^ typeerror: cannot read property 'prototype' of undefined     @ object.<anonymous> (/people/home/jdomingues/local/node/lib/node/.npm/express/1.0.7/package/lib/express/server.js:87:44)         @ module._compile (module.js:373:26)     @ object..js (module.js:379:10)     @ module.load (module.js:305:31)     @ function._load (module.js:271:10)     @ require (module.js:317:19)     @ object.<anonymous> (/people/home/jdomingues/local/node/lib/node/.npm/express/1.0.7/package/lib/express/index.js:28:31)     @ module._compile (module.js:373:26)     @ object..js (module.js:379:10)     @ module.load (module.js:305:31 

can me? why getting error? how can maybe install different version express?

the issue have latest connect (as opposed "you need install latest connect") command @shripad showed helpful , show you have connect 1.0, yay...uh oh express isn't quite ready 1.0 connect, go 0.5.10:

npm install connect@0.5.10 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -