2016-08-09 86 views
3

Ich verwende Winkel-cli für mein erstes Winkel 2-Projekt, aber es erzeugt die Fehler unten, wenn ich npm start BefehlAngular cli npm Start fehlgeschlagen

Running without elevated rights. Running Ember CLI "as Administrator" increases performance significantly. 
See ember-cli.com/user-guide/#windows for details. 

Livereload failed on http://localhost:49156. It is either in use or you do not have permission. 

npm ERR! Windows_NT 6.3.9600 
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.5.0 
npm ERR! npm v3.3.12 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `ng server` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'ng server'. 
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 ng-app package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  ng server 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls ng-app 
npm ERR! There is likely additional logging output above. 

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

ich meine prerequise alle für meine Maschine überprüfen, weil ich haben, Knoten v5.5.0, Typ 1.3.2, aber es erzeugt immer noch den gleichen Fehler.

Was habe ich vermisst?

Vielen Dank im Voraus!

Edited: ich den npm start Befehl an diesem Morgen läuft, und es hat den folgenden Fehler:

The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with: 
Error: EPERM: operation not permitted, symlink 
+0

Ich hoffe, Sie sind durch mit ng init Befehl, so dass alle Knoten Module installiert sind, können Sie die Informationen über die Aufgabe hinzufügen, die ausgeführt wird, wenn Sie 'npm starten' und auch, was ist die Version von angular cli Sie haben? –

+2

siehe unter https://github.com/angular/angular-cli/issues/1600 – agriboz

+0

@MadhuRanjan: angular-cli: 0.1.0 Knoten: 5.5.0 os: win32 x64 –

Antwort

1

Von der Frage zu beantworten, wurde es zu einem anderen Prozess verwandt den Port 49156 verwendet, die durch erforderlich ist Angular CLI zum automatischen Nachladen. Um sicher zu sein, gibt es nichts mit dem Port, den Sie die URL http://localhost:49156/ anfordern können. Wenn Sie den Prozess nicht finden, kann ein Neustart das Problem lösen.

+1

Ich habe mich geirrt, ich benutze Port 4200 –

+0

Was meinst du? –

+0

Dieser 49156 Port ist nicht der Serve Port, ich denke, es ist ein Testport –