Skip to content

fix(@angular/cli): explain the latest version fallback when ng add finds no compatible version - #34650

Closed
MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:fix/ng-add-latest-fallback-message
Closed

MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:fix/ng-add-latest-fallback-message

Conversation

@MeAkib

@MeAkib MeAkib commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

When no version of the package satisfies the peer dependencies of the project, ng add reports Unable to find compatible package. and then continues to install the version of the latest tag. The explanation that the latest tag is used was dropped when the command was migrated to the new package manager abstraction, so the installation that follows the message is unexpected.

…nds no compatible version

When no version of the package satisfies the peer dependencies of the project,
`ng add` reports `Unable to find compatible package.` and then continues to
install the version of the `latest` tag. The explanation that the `latest` tag is
used was dropped when the command was migrated to the new package manager
abstraction, so the installation that follows the message is unexpected.

Restore the `Using 'latest' tag.` explanation.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the fallback message in packages/angular/cli/src/commands/add/cli.ts when a compatible package is not found, clarifying that the 'latest' tag will be used. I have no feedback to provide as there are no review comments.

@alan-agius4

Copy link
Copy Markdown
Collaborator

Duplicate of #34615

@alan-agius4 alan-agius4 marked this as a duplicate of #34615 Nov 4, 2026
@alan-agius4 alan-agius4 closed this Nov 4, 2026
@MeAkib
MeAkib deleted the fix/ng-add-latest-fallback-message branch November 4, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants