2

I am trying to create a new application using angular CLI. I keep getting the "invalid configuration" error. I get the same error when I use the ng --version command.

$ ng new angular_organicstore
An invalid configuration file was found 
['/Users/USERNAME/.angular.json']. Please delete the file before 
running the command.

Node version: 10.14.1

Any ideas on how can I fix this error ? Much appreciated.

  • Hello! There seem to be a good number of question related to this out there https://stackoverflow.com/a/53460171/10747134 –  Feb 13 '19 at 20:58
  • it is prompting you to delete the file on that path have you tried doing so and re running command? – devDan Feb 13 '19 at 20:58
  • I tried searching for the .angular/json file in my username folder. But the file is not there. –  Feb 13 '19 at 21:00
  • fyi usually files that start with a period won't be shown in the file explorer/finder. – Phix Feb 13 '19 at 21:22

1 Answers1

0

You hve to delete your .angular.json file.

If you are on Windows, open cmd command prompt and do:

del Users\<USERNAME>\.angular.json

With shell bash:

rm Users/<USERNAME>/.angular.json
veben
  • 19,637
  • 14
  • 60
  • 80