缺少 .angular-cli.json 文件:Angular [英] Missing .angular-cli.json file: Angular

查看:31
本文介绍了缺少 .angular-cli.json 文件:Angular的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 Angular-cli 和以下命令创建了 Angular2 项目:

I've created Angular2 project using Angular-cli with the following command:

ng new project-name

但是,我在项目的根文件夹中没有看到 .angular-cli.json 文件.我使用的 angular-cli 版本是 1.0.2.我过去用cli创建了多个项目,从未遇到过这个问题.是因为最近更新吗?如果是,我在哪里可以找到json文件?还是我需要手动创建?

but, I don't see .angular-cli.json file in my root folder of the project. The angular-cli version I'm using is 1.0.2. I've created multiple projects with cli in the past and have never encountered this problem. Is it because of the recent update? If yes, where can I find the json file? Or do I need to create it manually?

推荐答案

更新:Angular 6.0.0 中,文件名从.angular-cli.json 到 angular.json.

Update: With Angular 6.0.0 the filename is changed from .angular-cli.json to angular.json.

.angular-cli.json 是一个隐藏文件,因为@angular/cli 1.0 版.

.angular-cli.json is a hidden file since @angular/cli version 1.0.

该文件有前缀 . 与此版本 1.0 ,因此它被隐藏,@JB Nizet 评论.

The file got the prefix . with this version 1.0 , so it is hidden as @JB Nizet commented.

在@angular/cli stories 1.0的wiki中描述了这一变化更新

The change is described in the wiki of @angular/cli stories 1.0 update

此文件的位置不变.

当您使用@angular/cli 1.0.2 创建新项目时,消息

When you create a new project with @angular/cli 1.0.2, the message

创建 .angular-cli.json

显示.

这篇关于缺少 .angular-cli.json 文件:Angular的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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