Skip to content

Wrong packages when running ng update  #22087

Description

@ties-s

Which @angular/* package(s) are the source of the bug?

upgrade

Is this a regression?

Yes

Description

When running ng update it lists @nguniversal/aspnetcore-engine while I'm using universal with express only (which isn't listed)

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

PROJECT_PATH  beta ✔  
▶ ng update
The installed local Angular CLI version is older than the latest stable version.
Installing a temporary version to perform the update.
✔ Package successfully installed.
Using package manager: 'npm'
Collecting installed dependencies...
Found 81 dependencies.
    We analyzed your package.json, there are some packages to update:
    
      Name                                    Version                  Command to update
     -------------------------------------------------------------------------------------
      @angular-eslint/schematics              12.5.0 -> 12.6.1         ng update @angular-eslint/schematics
      @angular/cdk                            12.2.8 -> 13.0.0         ng update @angular/cdk
      @angular/cli                            12.2.7 -> 13.0.1         ng update @angular/cli
      @angular/core                           12.2.8 -> 13.0.0         ng update @angular/core
      @angular/google-maps                    12.2.8 -> 13.0.0         ng update @angular/google-maps
      @angular/material                       12.2.8 -> 13.0.0         ng update @angular/material
      @nguniversal/aspnetcore-engine          12.1.1 -> 13.0.0         ng update @nguniversal/aspnetcore-engine
    
    There might be additional packages which don't provide 'ng update' capabilities that are outdated.
    You can update the additional packages by running the update command of your package manager.

PROJECT_PATH  beta ✔ 
▶ npm ls @nguniversal/aspnetcore-engine
PROJECT@0.0.0 PROJECT_PATH
└── (empty)

Please provide the environment you discovered this bug in

Angular CLI: 12.2.7
Node: 16.11.1 (Unsupported)
Package Manager: npm 8.1.2
OS: darwin arm64

Angular: 12.2.8
... animations, cdk, common, compiler, compiler-cli, core, forms
... google-maps, material, platform-browser
... platform-browser-dynamic, platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.7
@angular-devkit/build-angular   12.2.7
@angular-devkit/core            12.2.7
@angular-devkit/schematics      12.2.7
@angular/cli                    12.2.7
@nguniversal/builders           12.1.1
@nguniversal/common             12.1.1
@nguniversal/express-engine     12.1.1
@schematics/angular             12.2.7
rxjs                            6.6.7
typescript                      4.3.5

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions