node.js - Can't launch nodejs + express basic program -
i having bit of problem basic nodejs , express program.
the problem when utilize npm start
should run node .\bin\www these errors:
c:\users\{usrname}\desktop\projets\cdc\cdc-api>npm start cdc-api@0.0.0 start c:\users\{usrname}\desktop\projets\cdc\cdc-api node .\bin\www events.js:72 throw er; // unhandled 'error' event ^ error: hear eaddrinuse @ errnoexception (net.js:904:11) @ server._listen2 (net.js:1042:14) @ hear (net.js:1064:10) @ server.listen (net.js:1138:5) @ function.app.listen (c:\users\{usrname}\desktop\projets\cdc\cdc-api\node_mo dules\express\lib\application.js:556:24) @ object.<anonymous> (c:\users\{usrname}\desktop\projets\cdc\cdc-api\bin\www: 7:18) @ module._compile (module.js:456:26) @ object.module._extensions..js (module.js:474:10) @ module.load (module.js:356:32) @ function.module._load (module.js:312:12) npm err! cdc-api@0.0.0 start: `node .\bin\www` npm err! exit status 8 npm err! npm err! failed @ cdc-api@0.0.0 start script. npm err! problem cdc-api package, npm err! not npm itself. npm err! tell author fails on system: npm err! node .\bin\www npm err! can info via: npm err! npm owner ls cdc-api npm err! there additional logging output above. npm err! scheme windows_nt 6.2.9200 npm err! command "c:\\program files\\nodejs\\\\node.exe" "c:\\program files\\nod ejs\\node_modules\\npm\\bin\\npm-cli.js" "start" npm err! cwd c:\users\{usrname}\desktop\projets\cdc\cdc-api npm err! node -v v0.10.32 npm err! npm -v 1.4.28 npm err! code elifecycle npm err! npm err! additional logging details can found in: npm err! c:\users\{usrname}\desktop\projets\cdc\cdc-api\npm-debug.log npm err! not ok code 0 c:\users\{usrname}\desktop\projets\cdc\cdc-api>
and here have in npm-debug.log:
0 info worked if ends ok 1 verbose cli [ 'c:\\program files\\nodejs\\\\node.exe', 1 verbose cli 'c:\\program files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'start' ] 2 info using npm@1.4.28 3 info using node@v0.10.32 4 verbose node symlink c:\program files\nodejs\\node.exe 5 verbose run-script [ 'prestart', 'start', 'poststart' ] 6 info prestart cdc-api@0.0.0 7 info start cdc-api@0.0.0 8 verbose unsafe-perm in lifecycle true 9 info cdc-api@0.0.0 failed exec start script 10 error cdc-api@0.0.0 start: `node .\bin\www` 10 error exit status 8 11 error failed @ cdc-api@0.0.0 start script. 11 error problem cdc-api package, 11 error not npm itself. 11 error tell author fails on system: 11 error node .\bin\www 11 error can info via: 11 error npm owner ls cdc-api 11 error there additional logging output above. 12 error scheme windows_nt 6.2.9200 13 error command "c:\\program files\\nodejs\\\\node.exe" "c:\\program files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" 14 error cwd c:\users\moucheg\desktop\projets\cdc\cdc-api 15 error node -v v0.10.32 16 error npm -v 1.4.28 17 error code elifecycle 18 verbose exit [ 1, true ]
i have tried found on net (reinstall node, recreate package.json, ...) can't work.
fyi, on windows 8 (if it's of help)
thank in advance help guys (and girls ;)).
the error "eaddrinuse" means port you're attempting utilize in utilize system. seek changing port used in app or closing whatever programme using it.
node.js express
No comments:
Post a Comment