You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

angular-cli.json文件缺失(非隐藏)问题求助

Why You're Not Seeing angular-cli.json in Your New Angular Projects

Hey there! I’ve run into this exact confusion before when helping folks get up to speed with Angular—let’s break down what’s going on here.

The Core Issue: Angular CLI Version Changes

Starting with Angular CLI 6.0.0, the old angular-cli.json configuration file was officially replaced with a new file called angular.json. This wasn’t a bug or a hidden file glitch—it’s a deliberate update from the Angular team to support more features (like multi-project workspaces) and a cleaner, more flexible configuration structure.

How to Confirm This

  1. Check your Angular CLI version by running this command in your terminal:

    ng version
    

    If the output shows a version number of 6.0.0 or higher, this is exactly why you don’t see angular-cli.json—it’s been replaced by angular.json.

  2. Look in your project’s root directory for angular.json instead. This file contains all the same (and more) configuration settings that the old angular-cli.json used to handle, like build targets, asset paths, and project metadata.

Why Your Old Search Results Refer to Hidden Files

The advice about angular-cli.json being a hidden file applies only to pre-6.0 versions of Angular CLI. Since you’re creating new projects, it’s almost certain you’re using a modern CLI version that uses the new angular.json file instead.

You don’t need to manually generate angular-cli.json—the angular.json file is the official replacement, and all modern Angular tooling will work with it seamlessly.

内容的提问来源于stack exchange,提问作者Dale Spiteri

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 03:57:18