Angular:当我创建一个 Angular 项目时出现新错误 [英] Angular: ng new error when I create an angular project

查看:29
本文介绍了Angular:当我创建一个 Angular 项目时出现新错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 ng new project_name:

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

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

I am getting this error I don't know how to get the solution.

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

I uninstalled @angular/cli and installed again

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

npm clean cache doesnt work too (I dont know if it is problem of my npm version

npm version is 6.4.1    
node version is 8.11.1

我需要什么来解决问题?

what do i need to solve the problem?

推荐答案

我删除了 c:\users\XXX\.angular.json 中的文件,它运行正常.

I deleted the file in c:\users\XXX\.angular.json and it was running ok.

这篇关于Angular:当我创建一个 Angular 项目时出现新错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆