2016-04-23 7 views
1

Ich erhalte den folgenden Fehler, wenn ich den eckigen Samen von github klonen und den Knotenserver laufen lasse. Ich habe den eckigen Seed in das vorhandene Projektverzeichnis geklont. Ich bin mir nicht sicher, was falsch läuft. Aber ich bekomme den folgenden Fehler. Hilfe freundlicherFehler in "npm Start" -Befehl des eckigen Seed Klonens

$ npm start 

> [email protected] prestart C:\projects\StickyTodos 
> npm install 


> [email protected] postinstall C:\projects\StickyTodos 
> bower install 


> [email protected] start C:\projects\StickyTodos 
> http-server -a localhost -p 8000 -c-1 

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

Error: listen EADDRINUSE 127.0.0.1:8000 
    at Object.exports._errnoException (util.js:860:11) 
    at exports._exceptionWithHostPort (util.js:883:20) 
    at Server._listen2 (net.js:1234:14) 
    at listen (net.js:1270:10) 
    at net.js:1379:9 
    at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16) 
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10) 

npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" 
npm ERR! node v5.0.0 
npm ERR! npm v2.10.1 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `http-server -a localhost -p 8000 -c-1` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'http-server -a localhost -p 8000 -c-1'. 
npm ERR! This is most likely a problem with the StickyTodos 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 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls StickyTodos 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\projects\StickyTodos\npm-debug.log 

Antwort

3

Der Fehler Error: listen EADDRINUSE 127.0.0.1:8000 ist zu erklären, dass etwas bereits Port gebunden ist 8000.

Wie Sie unter Windows sind, netstat -a -b in einer erhöhten Eingabeaufforderung (klicken Sie auf der rechten Taste und drücken Sie die Eingabeaufforderung starten (Admin)) sollte Ihnen zeigen, was Port 8000 bereits abgehört.

Stoppen Sie einfach diesen Prozess, oder alternativ binden Sie an einen anderen Port, der frei ist.