Ionic cordova - The configuration file (. \ Ionic.config.json) is invalid. JSON format

Every time I run this command: ion cordova builds android - release

I am using cordova -v 7.0.1

I get this error:

The config file (.\ionic.config.json) is not valid JSON format.

Please fix any JSON errors in the file.

Here is my file:

{
  "app_id": "12345",
  "name": "myApp",
  "type": "ionic1"
}

I'm not sure what is going on here.

This command works just fine: corova build android --release

I'm not sure what is happening with ionic.

+4
source share
4 answers

Go to this path - C:/Users/{username}/.ionic find the file ( ionic.config) and delete this file.

+4
source

, . package.json bower.json. , . , , .

0

Can I ask for information about what was wrong both in the package.json file and in the bower.json file?

0
source

Run:

npm uninstall -g ionic

Delete .ionic from user home folder

rm -Rf ~/.ionic

Then reinstall ionic:

npm i -g ionic
0
source

Source: https://habr.com/ru/post/1679351/


All Articles