Olá.
Estou usando o projeto do curso, e tenho no Linux o node 6.11.1, cordova 7.0.1 e Ionic 2.2.1.
Acontece que após dar npm install
dentro da pasta aluraCar e executar ionic serve --lab
acontece o seguinte erro, e o servidor não sobe:
> ionic-hello-world@ ionic:serve /home/phillip/Documents/Cursos Alura/Ionic 2 parte 1: aplicações híbridas mobile ainda mais poderosas/projeto/aluraCar
> ionic-app-scripts serve "--v2" "--lab" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
sh: 1: ionic-app-scripts: not found
npm ERR! Linux 4.10.0-32-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "ionic:serve" "--" "--v2" "--lab" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! ionic-hello-world@ 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 ionic-hello-world@ 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! /home/phillip/Documents/Cursos Alura/Ionic 2 parte 1: aplicações híbridas mobile ainda mais poderosas/projeto/aluraCar/npm-debug.log
There was an error serving your Ionic application: There was an error with the spawned command: serve
ionic-app-scripts: not found, mas como resolvo isso, caso seja o problema?
Obs.: Não instalei a mesma versão de Cordova do curso pois eu já tinha essa dai na máquina, fiz o processo apenas pro Ionic então.
Obrigado.