started learn ionicframework hhttps google getting create blank javascript cordova ionic2

javascript - learn - ionic2 falla durante el direccionamiento al servidor de desarrollo en ejecución(ion hello world)



ionic documentation (1)

Enfrenté el mismo problema con la advertencia siguiente

************************************************** **** Advertencia de dependencia: para que la CLI se ejecute correctamente, se recomienda encarecidamente instalar / actualizar lo siguiente: Instalar su CLI de Cordova en la versión> = 4.2.0 npm instalar -g cordova Instalar ios-sim para implementar aplicaciones de iOS . npm install -g ios-sim (puede requerir sudo) Instalar ios-deploy para implementar aplicaciones de iOS en dispositivos. npm install -g ios-deploy (puede requerir sudo)

intente, ejecutando el comando cordova -v se le seleccionará con la pregunta siguiente

? May Cordova anonymously report usage statistics to improve the tool over time? No

Usé no y mostró que la versión era 6.5.0

You have been opted out of telemetry. To change this, run: cordova telemetry on. 6.5.0

Ejecuté el comando ionic serve otra vez y funcionó.

ionic2 hello world no funciona.

Estoy siguiendo comenzar en el sitio oficial - https://ionicframework.com/docs/v2/intro/tutorial/

install cordova and ionic ionic start probaionic --v2 cd probaionic ionic serve

Todo funciona bien: el servidor dev se ejecuta: http: // localhost: 8100 /

Cuando intento abordar esta URL, aparece este error:

traineeProgram/probaionic/node_modules/@ionic/app-scripts/dist/dev-server /live-reload.js:27 var contentStr = content.toString(); ^ TypeError: Cannot read property ''toString'' of undefined at Object.injectLiveReloadScript (/media/volodymyr/Media/[[1]] work/[8]programming/[1]keenethics/traineeProgram/probaionic/node_modules/@ionic/app-scripts/dist/dev-server/live-reload.js:27:29) at ReadFileContext.callback (/media/volodymyr/Media/[[1]] work/[8]programming/[1]keenethics/traineeProgram/probaionic/node_modules/@ionic/app-scripts/dist/dev-server/http-server.js:62:39) at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:365:13) npm ERR! Linux 4.4.0-57-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "ionic:serve" "--" "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729" npm ERR! node v6.9.5 npm ERR! npm v4.1.2 npm ERR! code ELIFECYCLE npm ERR! ionic-hello-world@ ionic:serve: `ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ionic-hello-world@ ionic:serve script ''ionic-app-scripts serve "--v2" "--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" "--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.