Angular 角度cli“;无效配置“;使用CLI创建新应用程序时出错
我正在尝试使用angular CLI创建一个新的应用程序。我一直收到“无效配置”错误。当我使用Angular 角度cli“;无效配置“;使用CLI创建新应用程序时出错,angular,angular-cli,Angular,Angular Cli,我正在尝试使用angular CLI创建一个新的应用程序。我一直收到“无效配置”错误。当我使用ng--version命令时,也会出现同样的错误 $ ng new angular_organicstore An invalid configuration file was found ['/Users/USERNAME/.angular.json']. Please delete the file before running the command. 节点版本:10.14.1 有没有关于如
ng--version
命令时,也会出现同样的错误
$ ng new angular_organicstore
An invalid configuration file was found
['/Users/USERNAME/.angular.json']. Please delete the file before
running the command.
节点版本:10.14.1
有没有关于如何修复此错误的想法?非常感谢。您需要删除
.angular.json
文件
如果您在Windows上,请打开cmd
命令提示符并执行以下操作:
del Users\<USERNAME>\.angular.json
你好似乎有很多问题与此相关,它正在提示您删除该路径上的文件。您是否尝试过这样做并重新运行命令?我尝试过在我的用户名文件夹中搜索.angular/json文件。但是文件不在那里。仅供参考,通常以句点开头的文件不会显示在文件资源管理器/查找器中。
rm Users/<USERNAME>/.angular.json