visionmedia/express — Issue #924: cannot run examples
Author: akania
Created: 2011-12-07 15:04:06+00:00
State: open

step to reproduce
git clone from https://github.com/visionmedia/express.git
cd express
npm install -d
( for example ) node examples/helloworld/app.js gives error :

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object function createApplication() {
var app = connect();
utils.merge(app, proto);
app.request = { __proto__: req };
app.response = { __proto__: res };
app.init();
return app;
} has no method 'createServer'
at Object. (/home/xxx/priv/express/examples/helloworld/app.js:8:19)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)

nvm ls
v0.6.1	v0.6.3	v0.6.5
current:	v0.6.5

npm ls
npm ls
express@3.0.0alpha1-pre /home/xxx/priv/express
├── commander@0.3.2
├─┬ connect@2.0.0alpha1
│ └── formidable@1.0.8
├─┬ connect-form@0.2.1
│ └── formidable@1.0.8
├─┬ connect-redis@1.2.0
│ └── redis@0.7.1
├── ejs@0.4.2
├── express-messages@0.0.2
├─┬ jade@0.17.0
│ └── commander@0.2.1
├── mime@1.2.4
├── mkdirp@0.0.7
├── mocha@0.3.2
├── node-markdown@0.1.0
├── qs@0.4.0
├── should@0.3.2
└─┬ stylus@0.13.0
├── cssom@0.2.0
└── growl@1.1.0