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

查看:200
本文介绍了缺少.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.

.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的Wiki中进行了描述故事1.0更新

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

create .angular-cli.json

.

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

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