Ionic-cli: Unable to parse Ionic Config file

Created on 8 Dec 2016  路  6Comments  路  Source: ionic-team/ionic-cli

Unable to parse Ionic Config file. Please make sure it is valid JSON (.ionic/ionic.config)
Caught exception:
SyntaxError: Unexpected token

Most helpful comment

In
C:\Users\nabin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-liblib\config.js

change
'.ionic/ionic.config',
to
'./ionic/ionic.config'

this link helped me. http://stackoverflow.com/questions/40776922/unable-to-parse-ionic-config-file-please-make-sure-it-is-valid-json/40805175#40805175

All 6 comments

What command are you executing when you receive this error? Also can you provide output from ionic info? Thanks

I am currently facing the same issue by running all ionic commands (also ionic info). It happened suddenly.

In
C:\Users\nabin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-liblib\config.js

change
'.ionic/ionic.config',
to
'./ionic/ionic.config'

this link helped me. http://stackoverflow.com/questions/40776922/unable-to-parse-ionic-config-file-please-make-sure-it-is-valid-json/40805175#40805175

Could you provide me with the output from ionic info from within your project directory? Thanks, this should help in troubleshooting. Some more info on your system setup could help me track down why this might be occurring.

Heey.. thanks @nabinkumarn ... this solution is perfect... i'll go back to work now!

Just Delete C:/Users/{username}/.ionic/ionic.config

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rashnk picture rashnk  路  3Comments

patwaswapnil picture patwaswapnil  路  3Comments

phyr0s picture phyr0s  路  3Comments

zarko-tg picture zarko-tg  路  3Comments

secret4info picture secret4info  路  3Comments