How to fix error when i run any ionic command


#1

my ionic version is

@angular/cli”: “^1.4.3”,
"@ionic/app-scripts": “^3.0.0”,
“ionic”: “3.12.0”,
“typescript”: “2.5.2”

when i run ionic serve -l command in cmd

i got this error in my all project also when i run ionic info command same error comes

{ Error
at FatalException.Exception (D:\kdIonic\divine\node_modules@ionic\cli-utils
\lib\errors.js:8:23)
at FatalException (D:\kdIonic\divine\node_modules@ionic\cli-utils\lib\error
s.js:17:9)
at Config. (D:\kdIonic\divine\node_modules@ionic\cli-utils\lib\c
onfig.js:45:35)
at throw (native)
at rejected (D:\kdIonic\divine\node_modules\tslib\tslib.js:94:69) name: ‘Exc
eption’, exitCode: 1, fatal: true }


#2

looks like ionic cli has some problem,
can you check if you can run via npm tasks ,
npm run ionic:serve / npm run ionic:build


#3

Not working by any command


#4

What is your ionic info output?
What does npm list -g --depth=0 return?


#5

Hello, All

I solved this error by simply deleting config.json file from C:\Users\PC.ionic

Thanks to all for gave your valuable time for my query