Skip to content

v12.0.0-next.3 ng update failed #20208

@gurezo

Description

@gurezo

🐞 Bug report

when ng update excuted, but update is failed

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

v12.0.0-next.2 did'nt happend

Description

➜  portfolio git:(feature/next) ng update @angular/cli@12.0.0-next.3 --force
Using package manager: 'npm'
Collecting installed dependencies...
Found 51 dependencies.
Fetching dependency metadata from registry...
    Updating package.json with dependency @angular-devkit/architect @ "0.1200.0-next.3" (was "0.1200.0-next.2")...
    Updating package.json with dependency @angular-devkit/build-angular @ "0.1200.0-next.3" (was "0.1200.0-next.2")...
    Updating package.json with dependency @angular/cli @ "12.0.0-next.3" (was "12.0.0-next.2")...
  UPDATE package.json (2559 bytes)
⠏ Installing packages (npm)...npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: @angular-devkit/build-angular@0.1200.0-next.2
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR!   dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/localize@12.0.0-next.3
npm ERR! node_modules/@angular/localize
npm ERR!   peerOptional @angular/localize@"^12.0.0-next" from @angular-devkit/build-angular@0.1200.0-next.3
npm ERR!   node_modules/@angular-devkit/build-angular
npm ERR!     dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/akihiko.kigure/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/akihiko.kigure/.npm/_logs/2021-03-06T06_16_57_067Z-debug.log
✖ Package install failed, see above.
✖ Migration failed. See above for further details.

➜  portfolio git:(feature/next) ✗ rm -rf node_modules
➜  portfolio git:(feature/next) ✗ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: @angular-devkit/build-angular@0.1200.0-next.2
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR!   dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/localize@12.0.0-next.3
npm ERR! node_modules/@angular/localize
npm ERR!   peerOptional @angular/localize@"^12.0.0-next" from @angular-devkit/build-angular@0.1200.0-next.3
npm ERR!   node_modules/@angular-devkit/build-angular
npm ERR!     dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/akihiko.kigure/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/akihiko.kigure/.npm/_logs/2021-03-06T06_18_36_505Z-debug.log
➜  portfolio git:(feature/next) ✗

🔬 Minimal Reproduction

$ ng update @angular/cli@12.0.0-next.3 --force
$ rm -rf node_modules
$ npm i

🔥 Exception or Error

when excuting ng update @angular/cli@12.0.0-next.3 --force


when excuting ng update @angular/cli@12.0.0-next.3 --force
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: @angular-devkit/build-angular@0.1200.0-next.2
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR!   dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/localize@12.0.0-next.3
npm ERR! node_modules/@angular/localize
npm ERR!   peerOptional @angular/localize@"^12.0.0-next" from @angular-devkit/build-angular@0.1200.0-next.3
npm ERR!   node_modules/@angular-devkit/build-angular
npm ERR!     dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/akihiko.kigure/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/akihiko.kigure/.npm/_logs/2021-03-06T06_16_57_067Z-debug.log
✖ Package install failed, see above.
✖ Migration failed. See above for further details.

------

when remove node_modules, npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: @angular-devkit/build-angular@0.1200.0-next.2
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR!   dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/localize@12.0.0-next.3
npm ERR! node_modules/@angular/localize
npm ERR!   peerOptional @angular/localize@"^12.0.0-next" from @angular-devkit/build-angular@0.1200.0-next.3
npm ERR!   node_modules/@angular-devkit/build-angular
npm ERR!     dev @angular-devkit/build-angular@"~0.1200.0-next.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/akihiko.kigure/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/akihiko.kigure/.npm/_logs/2021-03-06T06_18_36_505Z-debug.log

🌍 Your Environment


macOS Catalina 10.15.7
➜  ~ npm -v
7.6.1
➜  ~ node -v
v12.20.2
➜  ~ ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 12.0.0-next.3
Node: 12.20.2
OS: darwin x64

Angular:
...
Ivy Workspace:

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1200.0-next.3 (cli-only)
@angular-devkit/core         12.0.0-next.3 (cli-only)
@angular-devkit/schematics   12.0.0-next.3 (cli-only)
@schematics/angular          12.0.0-next.3 (cli-only)
@schematics/update           0.1200.0-next.3 (cli-only)

➜  ~

Anything else relevant?
may be nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions