ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 382 forks source link

examples not working out of box in node v0.12.7 #140

Open ghost opened 8 years ago

ghost commented 8 years ago

Steps:

1) git clone https://github.com/ericf/express-handlebars 2) cd express-handlebars/examples/basic 3) npm install 4) npm start //observed log errors

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/home/shane/npm/bin/npm', 'start' ]
2 info using npm@2.8.4
3 info using node@v0.12.7
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart express-handlebars-basic-example@0.0.0
6 info start express-handlebars-basic-example@0.0.0
7 verbose unsafe-perm in lifecycle true
8 info express-handlebars-basic-example@0.0.0 Failed to exec start script
9 verbose stack Error: express-handlebars-basic-example@0.0.0 start: `node server.js`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (/home/shane/npm/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (/home/shane/npm/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1015:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid express-handlebars-basic-example@0.0.0
11 verbose cwd /home/shane/Desktop/express-handlebars/examples/basic
12 error Linux 3.13.0-61-generic
13 error argv "node" "/home/shane/npm/bin/npm" "start"
14 error node v0.12.7
15 error npm  v2.8.4
16 error code ELIFECYCLE
17 error express-handlebars-basic-example@0.0.0 start: `node server.js`
17 error Exit status 1
18 error Failed at the express-handlebars-basic-example@0.0.0 start script 'node server.js'.
18 error This is most likely a problem with the express-handlebars-basic-example package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     node server.js
18 error You can get their info via:
18 error     npm owner ls express-handlebars-basic-example
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]