node.js - Angular:创建 Angular 项目时出现新错误

标签 node.js angular angular-cli

我在使用 ng new project_name: 时遇到此错误:

发现无效的配置文件 ['angular.json']。请在运行命令之前删除该文件。

我收到此错误,我不知道如何获得解决方案。

我卸载了@angular/cli 并重新安装

npm clean cache 也不能用(不知道是不是我npm版本的问题

npm version is 6.4.1    
node version is 8.11.1

我需要什么来解决这个问题?

最佳答案

如果你使用的是IntelliJ IDEA的终端,而IDEA中已经导入了一个angular项目,那就是IDEA的问题。所以,打开你windows的命令提示符,创建项目。

我这样做了,并且能够创建项目。

关于node.js - Angular:创建 Angular 项目时出现新错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53353955/

相关文章:

node.js - Alexa 技能 : is it possible to pause and resume the skill programmatically?

jquery - 如何在node.js中将数据从服务器发送到客户端

node.js - async.waterfall 不适用于 mongoose 异步函数

node.js - Mongoose:从 2 个集合获取数据

angular - 错误 : Please, 将您的依赖项升级到 core-js@3 的实际版本

angular - 如何在运行时更改 Angular Material Datepicker 格式

angular - 使用 jasmine 测试 NGXS 异常

angular - 拦截输入属性更改的命名约定

Angular 库 Monorepo : Is it possible to use different versions for every library?

angular - 安装旧的 Angular 版本 5?