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

starting serverjs issue #12

Open
sarathvsgit opened this issue Dec 4, 2015 · 4 comments
Open

starting serverjs issue #12

sarathvsgit opened this issue Dec 4, 2015 · 4 comments

Comments

@sarathvsgit
Copy link

Hi
when try to start using node start.js , I get the below error
"Most middleware (like logger) is no longer bundled with Express and must be installed separately."

@ramanan12345
Copy link

Reinstall node js fresh remove old node js and reinstall node js again
Now check up

Sent from my iPhone ramanan Retd LIC Dharwad

On 04-Dec-2015, at 4:37 PM, sarath [email protected] wrote:

Hi
when try to start using node start.js , I get the below error
"Most middleware (like logger) is no longer bundled with Express and must be installed separately."


Reply to this email directly or view it on GitHub.

@VivekSingh777
Copy link

THe above soultion does not work.

@itailulu
Copy link

OK, @ramanan12345 and @VivekProHacker, i had the same issue. Here is the solution (or at least, workaround):
Tl;DR: change the dependency for express to use exactly version 3.0.0.
The problem exactly what the error says, the middleware is not bundled anymore with express, and the quick solution to that is just use the express version that was initially used in this project.
Looking at the package.json you'll see something along the lines:

"dependencies": {
    "express": ">= 3.0.0",
    ...
  },

Just go ahead and make sure it uses express 3.0.0 by removing the ">= " and you're good to go

@ramanan12345
Copy link

ramanan12345 commented Mar 2, 2018 via email

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

4 participants