Open deepflame opened 9 years ago
cordova: 5.4.0
ember-cli: 1.13.8
ok, found it.
Guess this is missing in the documentation somewhere. I had to change my 'locationType' to 'hash' as it is written in the error message.
excerpt from the code:
if (config.locationType && config.locationType !== 'hash') {
throw new Error('ember-cli-cordova: You must specify the locationType as \'hash\' in your environment.js or rename it to defaultLocationType.');
}
conf.locationType = 'hash';
Not sure if this is a bug or if the documentation should just be updated.
@deepflame In Getting Started:
Once your project is set up, you're ready to start developing. We've tried to keep the experience as similar to ember-cli as possible. You just need to move your locationType setting in config/environment.js to defaultLocationType so that it'd be used when not building for cordova (cordova needs hash as locationType).
@dukex Thanks for the pointer.
It just happens already with ember generate cordova-init
(Setting up the app). The part you are referring to is from "Developing the app".
So I guess this part should be in "Setting up the app" as well.
git clone https://github.com/poetic/ember-cli-cordova.git cd ember-cli-cordova npm i
68182 verbose install:uglify-js@2.3.6 Error: ENOENT: no such file or directory, chmod 'C:\MyWorkSpace\Dvlp\Trial\ember-cli-cordova\node_modules\ember-cli\node_modules\broccoli\node_modules\handlebars\node_modules\uglify-js\bin\uglifyjs' ..... ..... 68201 verbose stack Error: ENOENT: no such file or directory, chmod 'C:\MyWorkSpace\Dvlp\Trial\ember-cli-cordova\node_modules\ember-cli\node_modules\broccoli\node_modules\handlebars\bin\handlebars' 68201 verbose stack at Error (native) 68202 verbose cwd C:\MyWorkSpace\Dvlp\Trial\ember-cli-cordova 68203 error Windows_NT 10.0.10586 68204 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "i" 68205 error node v5.5.0 68206 error npm v3.3.12 68207 error path C:\MyWorkSpace\Dvlp\Trial\ember-cli-cordova\node_modules\ember-cli\node_modules\broccoli\node_modules\handlebars\bin\handlebars 68208 error code ENOENT 68209 error errno -4058 68210 error syscall chmod 68211 error enoent ENOENT: no such file or directory, chmod 'C:\MyWorkSpace\Dvlp\Trial\ember-cli-cordova\node_modules\ember-cli\node_modules\broccoli\node_modules\handlebars\bin\handlebars' 68211 error enoent This is most likely not a problem with npm itself 68211 error enoent and is related to npm not being able to find a file. 68212 verbose exit [ -4058, true ]
ember -v version: 1.13.15 node: 5.5.0 npm: 2.14.10 os: win32 x64 npm -v 3.3.11
any idea? Thanks in advance. npm-debug.zip
@litao10422 this seems to be a different issue. Any reason you clone the repo instead of installing the plugin as described in the "Getting started" guide?
I installed the plugin following the "Getting started" guide. Then I tried to clone the repo but failed, then I want to know how to resolve those error. Anyway, could you teach me in which file to override the EMBER_CLI_CORDOVA environment variable? config/environment.js? EMBER_CLI_CORDOVA=0 ember serve Thank you.
@litao10422 personally I have no idea as I have not used the plugin myself so much yet. Maybe you open a new issue for it?
When I run it I get the following:
Any idea?