2017-01-27 2 views
1
Aktualisierung

Ich baue eine app und seine in der Nähe seiner Fertigstellung auf die Aktualisierung 2 zu ionischen fing es an mir, diesen Fehler zu geben:Ionic dienen Fehler nach

/Users/Raz/Work/Ionic 2/My-World/node_modules/.bin/ionic-app-scripts: line 1: ../@ionic/app-scripts/bin/ionic-app-scripts.js: No such file or directory 

    npm ERR! Darwin 16.1.0 
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "ionic:serve" "--" "--v2" "--lab" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729" 
    npm ERR! node v7.4.0 
    npm ERR! npm v4.0.5 
    npm ERR! file sh 
    npm ERR! code ELIFECYCLE 
    npm ERR! errno ENOENT 
    npm ERR! syscall spawn 
    npm ERR! [email protected] ionic:serve: `ionic-app-scripts serve "--v2" "--lab" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"` 
    npm ERR! spawn ENOENT 
    npm ERR! 
    npm ERR! Failed at the [email protected] ionic:serve script 'ionic-app-scripts serve "--v2" "--lab" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"'. 
    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 ionic-hello-world package, 
    npm ERR! not with npm itself. 
    npm ERR! Tell the author that this fails on your system: 
    npm ERR!  ionic-app-scripts serve "--v2" "--lab" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729" 
    npm ERR! You can get information on how to open an issue for this project with: 
    npm ERR!  npm bugs ionic-hello-world 
    npm ERR! Or if that isn't available, you can get their info via: 
    npm ERR!  npm owner ls ionic-hello-world 
    npm ERR! There is likely additional logging output above. 

    npm ERR! Please include the following file with any support request: 
    npm ERR!  /Users/Raz/Work/Ionic 2/My-World/npm-debug.log 
    There was an error serving your Ionic application: There was an error with the spawned command: serve 

I Npm aktualisiert, Knoten und cordova und dort nach wie vor Probleme:

Cordova CLI: 6.1.1 
Ionic Framework Version: 2.0.0 
Ionic CLI Version: 2.2.1 
Ionic App Lib Version: 2.2.0 
Ionic App Scripts Version: 1.0.0 
ios-deploy version: 1.9.0 
ios-sim version: 5.0.8 
OS: macOS Sierra 
Node Version: v7.4.0 
Xcode version: Xcode 8.1 Build version 8B62 

ich habe auch das gleiche auf einer anderen Maschine, und die Ergebnisse sind die gleichen, so scheint es, das Problem mit ionischen selbst sein könnte und nicht mit npm

+0

haben Sie versucht, den Projektordner node_module zu entfernen und 'npm install' auszuführen? –

+0

Jetzt habe ich versucht und das hat funktioniert !! alles läuft gut jetzt –

+0

können Sie bewegen, um zu antworten, damit ich als richtig markieren kann? –

Antwort

4

Versuchen Sie, Ihren Ordner node_modules in Ihrem Projekt zu löschen.

Run npm install

Es ist der erste Schritt, um die meisten Probleme mit Änderungen in package.json fixieren.

1

Versuchen sie Ihre Version von Cordova CL Aktualisierung I: npm install -g [email protected] bis zur letzten Version 6.5.0. Ich glaube, dass die neueste Version dieses Frameworks mit der neuesten Version von Cordova ausgeführt werden sollte.

+0

../@ ionic/app-scripts/bin/ionic-app-scripts.js' Sie können versuchen, zu überprüfen, ob diese Datei auch existiert? –

+0

surajs Antwort behoben das Problem trotzdem –