Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the example code doesn't run #1

Open
neoswf opened this issue Oct 14, 2012 · 0 comments
Open

the example code doesn't run #1

neoswf opened this issue Oct 14, 2012 · 0 comments

Comments

@neoswf
Copy link

neoswf commented Oct 14, 2012

I get this when running 'node app'

Warning: express.createServer() is deprecated, express
applications no longer inherit from http.Server,
please use:

var express = require("express");
var app = express();

C:\Users\Shlomi\WebstormProjects\expressTests\exampleOrig\app.js:54
console.log("Express server listening on port %d", app.address().port);
^
TypeError: Object function app(req, res){ app.handle(req, res); } has no method 'address' at Object. (C:\Users\Shlomi\WebstormProjects\expressTests\exampleOrig\app.js:54:58)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant