Skip to content

Support yarn/pnpm catalogs #31780

@snebjorn

Description

@snebjorn

Command

update

Description

Both yarn and pnpm have catalogs now

Would be neat if ng update would work with it. Currently it doesn't.

Using package manager: yarn
Collecting installed dependencies...
Found 17 dependencies.
    Package @angular/build was not found on the registry. Skipping.
    Package @angular/cli was not found on the registry. Skipping.
    Package @angular/compiler-cli was not found on the registry. Skipping.
    Package @angular/common was not found on the registry. Skipping.
    Package @angular/compiler was not found on the registry. Skipping.
    Package @angular/core was not found on the registry. Skipping.
    Package @angular/forms was not found on the registry. Skipping.
    Package @angular/platform-browser was not found on the registry. Skipping.
    Package @angular/router was not found on the registry. Skipping.
    We analyzed your package.json and everything seems to be in order. Good work!
// package.json
"dependencies": {
    "@angular/common": "catalog:angular",
    "@angular/compiler": "catalog:angular",
    "@angular/core": "catalog:angular",
    "@angular/forms": "catalog:angular",
    "@angular/platform-browser": "catalog:angular",
    "@angular/router": "catalog:angular",
# yarnrc.yml
catalogs:
  angular:
    '@angular/common': ^20.3.0
    '@angular/core': ^20.3.0
    '@angular/compiler': ^20.3.0
    '@angular/forms': ^20.3.0
    '@angular/platform-browser': ^20.3.0
    '@angular/router': ^20.3.9

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions