angular / angular-seed

Seed project for angular apps.
http://angularjs.org/
MIT License
13.04k stars 6.95k forks source link

npm start is not working #426

Closed Jibinj21 closed 6 years ago

Jibinj21 commented 6 years ago

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

angular-seed@0.0.0 start E:\prj\templateStore http-server -a localhost -p 8000 -c-1 ./app

events.js:160 throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE 127.0.0.1:8000 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at Server._listen2 (net.js:1262:14) at listen (net.js:1298:10) at net.js:1408:9 at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:81:10)

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! angular-seed@0.0.0 start: http-server -a localhost -p 8000 -c-1 ./app npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the angular-seed@0.0.0 start script 'http-server -a localhost -p 8000 -c-1 ./app'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the angular-seed package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! http-server -a localhost -p 8000 -c-1 ./app npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs angular-seed npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls angular-seed npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! E:\prj\templateStore\npm-debug.log

This is what i am getting after doing npm start

gkalpak commented 6 years ago

This error means that something on your machine is already using port 8000, so the http-server module cannot bind to it. Make sure the port is free before running npm start.