Ionic commands are not working ionic cli - stuck here anyone any opinions


#1

G:\MY_POC>ionic serve
{ Error
at FatalException.Exception (C:\Users\Satish Raizada\AppData\Roaming\npm\node_modules\ionic\node_modules@ionic\cli-utils\lib\errors.js:8:23)
at FatalException (C:\Users\Satish Raizada\AppData\Roaming\npm\node_modules\ionic\node_modules@ionic\cli-utils\lib\errors.js:17:9)
at Config. (C:\Users\Satish Raizada\AppData\Roaming\npm\node_modules\ionic\node_modules@ionic\cli-utils\lib\config.js:61:35)
at throw (native)
at rejected (C:\Users\Satish Raizada\AppData\Roaming\npm\node_modules\ionic\node_modules\tslib\tslib.js:101:69) name: ‘Exception’, exitCode: 1, fatal: true }


#2

Did you manage to resolve this error ?? I am getting the same error


#3

There is a file under ‘C:\Users\Satish Raizada.ionic’ called ‘config.json’ which was empty. I replaced it with a new one , it now seems to be working fine.


#4

Will you be able to provide me with the json file ?


#5

Here you go

{
  "user": {
    "id": "1115623",
    "email": "xxxxxxxxxx@hotmail.com"
  },
  "tokens": {
    "appUser": {},
    "telemetry": "aabfe381-7ce2-4eb4-98e0-c79c88ede822",
    "user": "a587fe265c8deac5ae940b30ce29ed7c"
  },
  "daemon": {
    "updates": true
  },
  "git": {
    "setup": false
  },
  "backend": "pro",
  "telemetry": true,
  "yarn": false,
  "state": {
    "lastCommand": "2017-11-11T13:23:21.298Z",
    "lastNoResponseToUpdate": "2017-11-02T10:39:59.941Z",
    "doctor": {
      "ignored": []
    }
  },
  "version": "3.18.0",
  "created": "2017-09-22T12:09:48.865Z",
  "addresses": {},
  "devapp": {
    "knownInterfaces": []
  }
}