btford / angular-express-seed

A great starting point for writing AngularJS apps backed by an Express-powered node.js server.
1.51k stars 596 forks source link

this repo can't run in Express 4 #48

Closed zollero closed 6 years ago

zollero commented 8 years ago

Hey.

I clone this repo to my computer, but it can't run, and I found errors below. So, I change something to fix these. Please check it.

/home/henry/Documents/angular-express-seed/node_modules/express/lib/express.js:89 throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.'); ^

Error: Most middleware (like errorHandler) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware. at Function.Object.defineProperty.get (/home/henry/Documents/angular-express-seed/node_modules/express/lib/express.js:89:13) at Object. (/home/henry/Documents/angular-express-seed/app.js:36:18) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) at Function.Module.runMain (module.js:575:10) at startup (node.js:159:18) at node.js:444:3

/home/henry/Documents/angular-express-seed/node_modules/express/lib/express.js:89 throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.'); ^

Error: Most middleware (like errorHandler) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware. at Function.Object.defineProperty.get (/home/henry/Documents/angular-express-seed/node_modules/express/lib/express.js:89:13) at Object. (/home/henry/Documents/angular-express-seed/app.js:39:18) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) at Function.Module.runMain (module.js:575:10) at startup (node.js:159:18) at node.js:444:3