angular-cli.json文件缺失(非隐藏)问题求助
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
Check your Angular CLI version by running this command in your terminal:
ng versionIf 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 byangular.json.Look in your project’s root directory for
angular.jsoninstead. This file contains all the same (and more) configuration settings that the oldangular-cli.jsonused 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

