iursevla / ionic2-PreDB

Simple Ionic 2+ with pre-populated database starter project
The Unlicense
14 stars 4 forks source link

Couldn't find ionic.config.json file. Are you in an Ionic project? - Error #3

Closed vipinsaini0 closed 7 years ago

vipinsaini0 commented 7 years ago

@iursevla @RuiGarciaAlves Getting Couldn't find ionic.config.json file. Are you in an Ionic project? error after run this project first time.

screen shot 2017-06-13 at 8 55 24 pm

Please help me to solve this issue. Thanks.

iursevla commented 7 years ago

Hi,

You have to change your directory first. cd prePopulated and then

Inside the project folder run: npm install Next:ionic build android After that: ionic run android

@vipinsaini0
Did it solve your issue?

vipinsaini0 commented 7 years ago

@iursevla @RuiGarciaAlves Now, getting this error after run on device from below command. $ ionic run android --device

ANDROID_HOME=/Users/AbcUser/Library/Android/sdk

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home

Error: Cannot read property 'length' of undefined

iursevla commented 7 years ago

@vipinsaini0 Please post the full error message (can be in an image) Then run ionic info on your project and post the results here too.

vipinsaini0 commented 7 years ago

@iursevla @RuiGarciaAlves


screen shot 2017-06-14 at 8 02 39 am


screen shot 2017-06-14 at 8 14 28 am

iursevla commented 7 years ago

Are you trying to open in a device or in an emulator like Genymotion?

Try updating your ionic CLI version because it is outdated.

Then try ionic cordova run android