question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default project for ng add

See original GitHub issue

Versions

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:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
keatkeat87commented, May 6, 2018

ng add @angular/material --project=name it work.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found