Getting json error following any ionic command


#1

Hello, hoping that someone can help. I am running under windows 10 with nodejs version 6.11.0, cordova version 7.0.1.

I was originally running fine, but recently started to get the following error after any ionic command: ionic start myApp tabs
SyntaxError: Unexpected token c in JSON at position 2.

So i…:

  1. uninstalled ionic & cordova, (npm uninstall -g ionic, npm uninstall -g cordova)
    2 ran npm cache clear then uninstalled nodejs.
  2. deleted all directories under \users<user>AppData\Roaming\npm & \users<user>AppData\Roaming\npm-cache.
  3. rebooted my machine
  4. reinstalled nodejs, and ran npm install -g cordova ionic.

Then tried to run the command again and got same results:
command: ionic start myApp tabs
SyntaxError: Unexpected token c in JSON at position 2.

I have been working on this issue for days and could really use some help.

Thanks


#2

I suspect a syntax error in ionic.config.json.