vendredi 29 janvier 2016

My app cannot work when I installed ember-cli-cordova, I need some advises

I installed ember-cli-cordova following ember-cli-cordova's Getting Started guidance.

Step 01:

npm install -g ember-cli

npm install -g cordova

Step 02:

ember new project-name

Step 03: You have to run ember commands in the project directory.

cd project-name

Step 04: Create "dist" directory.

ember build

Step 05:

ember install ember-cli-cordova

Step 06: edit config/environment.js

1) change "locationType: 'auto'" to "locationType: 'hash'". (cordova needs hash as locationType)

2) Add setting "Env.cordova...."

Step 07:

ember generate cordova-init com.rabit.hybrid

Step 08: Edit config/environment.js

defaultLocationType: 'hash',
...
cordova: {
...
    platform: 'android',

Step 09:

ember generate cordova-starter-kit

Step 10:

C:\MyWorkSpace\Dvlp\Trial\hybridOne>ember server

version: 1.13.13

Livereload server on http://localhost:49152

Serving on http://localhost:4200/

ENOENT: no such file or directory, stat 'C:\MyWorkSpace\Dvlp\Trial\hybridOne\tmp\concat_with_maps-input_base_path-EtFoLMHC.tmp\0\bower_components\hammerjs\hammer.js'

Error: ENOENT: no such file or directory, stat 'C:\MyWorkSpace\Dvlp\Trial\hybridOne\tmp\concat_with_maps-input_base_path-EtFoLMHC.tmp\0\bower_components\hammerjs\hammer.js'

at Error (native)

at Object.fs.statSync (fs.js:892:18)

at ConcatWithMaps.keyForFile (C:\MyWorkSpace\Dvlp\Trial\hybridOne\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\index.js:90:20)

Hope someone can tell me what's wrong.

Thanks in advance!




Aucun commentaire:

Enregistrer un commentaire