Default project for ng add
See original GitHub issueVersions
cli 6.0.0-rc.4
material 6.0.0-rc.3
Repro steps
npm i @angular/cli@next -g
ng new helloworld
npm install @angular/{material,cdk}@next
ng add @angular/material
Observed behavior
Multiple projects are defined; please specify a project name
Desired behavior
Should install in the default project when there is just one.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
ng add - Angular
Option Description Value Type Default Value
‑‑force Force overwriting of existing files. boolean false
‑‑interactive Enable interactive input prompts. boolean true
‑‑registry The NPM registry to...
Read more >Change the default Angular project | by Klaus Kazlauskas
Angular's default project is nothing more than a string, set in angular.json , to say which project should run with ng commands without...
Read more >Angular - ng add - w3resource
The default app project is the value of defaultProject in angular.json. Arguments. ARGUMENT, DESCRIPTION. <collection>, The package to be added.
Read more >ng new - Angular
The new workspace folder is given the specified project name, and contains configuration files at the top level. · By default, the files...
Read more >ng add - Angular
The default project is the value of defaultProject in angular.json . Arguments. Argument, Description, Value Type. < collection >. The package ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ng add @angular/material --project=name it work.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.