Description:
My Ionic cli was working fine until i was doing an ionic upload, while my laptop battery drop dead, and after that i am having the following issue. I tried everything, removing Ionic, clearing npm cache, and reinstalling it, but i couldn't find the proper solution to this problem. My Ionic cli is not working at all, despite all attempts.
Please note it basically not a problem in ionic.config, it something wrong with The config file (./.ionic/daemon.json) is not valid JSON format.
I tried to access it , but can't find it, I am using ubuntu 17.
Steps to Reproduce:
I have tried to re-install it and my Ionic is not working at all.
I have tried clearing the cache, not working.
Output:

My ionic info:
Ionic cli not working!

Other Information:
Ubuntu 17
Hello @moeidsaleem!
To get around your issue, you can probably just rm ~/.ionic/daemon.json and the daemon.json file should rebuild the next time it is needed, just like it did the first time.
OTOH, if you just want to see the current contents of the file, try having a look in ~/.ionic like this::
ken@ken-Gazelle:~/projects/home/savitr (feature/planning)$ cd ~/.ionic
ken@ken-Gazelle:~/.ionic$ ls
config.json daemon.json daemon.log
ken@ken-Gazelle:~/.ionic$ cat daemon.json
{
"daemonVersion": "3.7.0",
"latestVersions": {
"latest": {
"@ionic/cli-plugin-proxy": "1.4.6",
"@ionic/cli-utils": "1.9.2",
"ionic": "3.9.2",
"@ionic/cli-plugin-cordova": "",
"@ionic/cli-plugin-ionic1": "",
"@ionic/cli-plugin-ionic-angular": ""
}
}
}
@kensodemann Thank you :+1:
@murshid1988 - you are welcome. I will close this. If you are still having an issue please let me know.
@kensodemann The issue was not created by me, but I came across the same issue. Hope this fix works for @moeidsaleem as well.
Goto this path- C:/Users/{username}/.ionic find file (ionic.config) and delete that file.
Just delete C:/Users/{username}/.ionic folder
Thanks for reply
On Wed, Jun 6, 2018 at 11:49 AM, nuwanu notifications@github.com wrote:
Just delete C:/Users/{username}/.ionic folder
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ionic-team/ionic-cli/issues/2672#issuecomment-394953301,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdtpD1i8-csM9rGwuG7HSpfSLGqBm3d1ks5t53RxgaJpZM4O8S5M
.
--
Thank You
// Vajid Ali
Most helpful comment
Hello @moeidsaleem!
To get around your issue, you can probably just
rm ~/.ionic/daemon.jsonand thedaemon.jsonfile should rebuild the next time it is needed, just like it did the first time.OTOH, if you just want to see the current contents of the file, try having a look in ~/.ionic like this::