and now this error has been popping out every time i type ionic
[ERROR] The config file (.\ionic.config.json) is not valid JSON format.
Please fix any JSON errors in the file.
I tried reverting the changes i did to the ionic.config.json, restarting the computer, deleting the config.json in C:\Users\XXXXX\ .ionic. And so far, nothing is working.
What you posted is valid JSON, so the only thing that could be wrong is that you didn’t post your actual file or that there are hidden characters in your actual file. Just copy your file to https://jsonlint.com/ and format it, delete the old file, copy it back into a new file to make sur everything is clean.
If your operative system is windows, go to directory C:/Users/yourUser and delete the folder “.ionic” before open de cdm or your terminal favorite and execute: npm install -g ionic@latest