3

I'm getting this error when i run a ionic command ionic ...:

{ Error
    at FatalException.Exception (C:\Users\crist\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils\lib\errors.js:8:23)
    at FatalException (C:\Users\crist\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils\lib\errors.js:17:9)
    at Config.<anonymous> (C:\Users\crist\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils\lib\config.js:45:35)
    at throw (native)
    at rejected (C:\Users\crist\AppData\Roaming\npm\node_modules\ionic\node_modules\tslib\tslib.js:94:69) name: 'Exception', exitCode: 1, fatal: true }

I tried removing ionic and cordova, clearing cache and re-installing it, globally and in project, but still same error

any ideas?

4

4 Answers 4

1

Looks like ~/.ionic/config.json was corrupt. I removed the ~/.ionic directory and reinstall it. Seems fine now.

Sign up to request clarification or add additional context in comments.

Comments

1

Had the same problem. Removing .ionic folder and reinstalling did resolve the error.

Comments

0

Remove the .ionic folder then run the ionic command in the cli again

Comments

0

from root on mac,for "jenkins" user chown -R jenkins ~/.npm/ and chown -R jenkins ~/.config/

and check ionic version by: ionic -v 3.20.0 fixed this!!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.