✗ Couldn't find ionic.config.json file. Are you in an Ionic project?


#1

All i do was

$ ionic start test

One awesome Ionic app coming right up…

Creating Ionic app in folder /…/test based on tabs project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================] 100% 0.0s
Installing npm packages…

Adding initial native plugins
[=============================] 100% 0.0s

Adding in iOS application by default
$ cd test
$ ionic plugin add cordova-plugin-screen-orientation

And it return me this error.

✗ Couldn’t find ionic.config.json file. Are you in an Ionic project?

But the rest of the files are there.
Also tried this

Regards!


#2

I dont exactly know whats the issue. But can you try the following command

cordova plugin add cordova-plugin-screen-orientation

I hope this would work.


#3

Hello @KowsalyaPK , thanks for your answer. Don’t know why should be different ionic plugin add than cordova plugin add, but it doesn’t solve my problem.
The problem here isn’t with the plugin, the problem is that ionic is not installing ionic.config.json. So if i do

$ ionic plugin ls
✗ Couldn’t find ionic.config.json file. Are you in an Ionic project?

Thank you any way


#4

I just found the ionic.config.json file
Its present in the C:/Users/(Username)/.ionic/
Why don’t you try reinstalling your ionic again through npm


#5

Thanks! :relaxed: solve it!


#6

Same problem. Reinstallation via npm didn’t help.

Cordova CLI: 6.3.1
Gulp version: CLI version 1.2.2
Gulp local: Local version 3.9.1
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.4.0
Xcode version: Xcode 7.3.1 Build version 7D1014

UPD Solved
By following Installing Ionic instructions

Tried to install previously on Desktop, not sure whether that’s the reason or not for fail installation.


#7

did you uninstall and install again?


#8

Everything’s working fine now. The problem was that I was trying to run the command from my folder, thus, my ionicAppFolder wasn’t the core files direction.

It was like:
myFolder -> ionicAppFolder -> ionicAppFolder files

And it should have been like:
ionicAppFolder -> ionicAppFolder files


#9

create ionic.config.json and add
{
“name”: “myapp”,
“app_id”: “”
}


#10

what app_id should I add?


#11

I tried removing and then reinstalling. Still not working. What should I do?


#12

app_id is your id in ionic cloud. If you are not using Ionic Cloud then you can leave it blank


#13

Hello.
I had the same problem so I found that the project (myApp) is users/myApp.
So the ionic serve command should be executed from that location right?

So in the terminal i used the ls and cd commands to navigate myself exactly into the folder and then serve
So terminal found the file and let me choose from 2 options how would I like to run the project (choose IP option)

If you are at this location, it will work.


#14

I have also same problem… plz help me how can solve this… mail me priti.kumari@bhadanitech.com


#15

Don’t run npm install -g cordova ionic. Install cordova and ionic separately.


#16

wow Thanks a lot … this saved my project. And for the whole day I was just wandered here and there… just because of this…


#17

I need help with this please! I got the same message and tried uninstalling and installing ionic multiple times. Someone please email me whitecolin99@gmail.com if you are willing to help! Thank you!


#18

Why does this have to be created manually?


#19

It seems like a lot of things cause this error. Here is what I found worked:

First you can release without ionic cloud. Just leave the app_id blank

To compile a build (as of ionic CLI 3), use this:
ionic cordova build android --release