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.

ng update @angular/core fails

See original GitHub issue

Versions

Angular CLI: 6.0.0
Node: 8.9.1
OS: win32 x64
Angular: 5.2.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.6.0
@angular-devkit/core         0.6.0
@angular-devkit/schematics   0.6.0
@angular/cli                 6.0.0
@schematics/angular          0.6.0
@schematics/update           0.6.0
rxjs                         5.5.10
typescript                   2.6.2

Repro steps

Observed behavior

Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=2.7.2 <2.8", would install "2.6.2")
Invalid range: ">=4.3.0"

Desired behavior

I would expect this to work properly.

Mention any other details that might be useful (optional)

I tried to manually update the compiler-cli and run the update function again and got this:

$ ng update @angular/core
Invalid range: ">=4.3.0"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:104
  • Comments:83 (4 by maintainers)

github_iconTop GitHub Comments

66reactions
ddahancommented, May 13, 2018

Sorry for beeing so negative and off topic, but what’s the point for Google to provide a new ng update command supposed to ease things if we need 58 comments in a an issue and 6 steps, to go from 6.0.0 to 6.0.1 in the end? I gave up, I will update this later when tools will be less cumbersome to use.

64reactions
bluefire2121commented, May 7, 2018

This should have been checked before angular 6.0.0 was released. Now I have to downgrade everything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error in ng update @angular/core when upgrading Angular ...
I have fixed by reinstalling @angular-devkit/build-angular , like this: npm install --save-dev install @angular-devkit/build-angular.
Read more >
ng update fails on latest angular cli · Issue #15941 - GitHub
We have two: Package "@angular/core" has an incompatible peer dependency to "zone.js" (requires "~0.9.1", would ...
Read more >
ng update - Angular
Description. Perform a basic update to the current stable release of the core framework and CLI by running the following command.
Read more >
How To Update Angular CLI To Latest Version
To update Angular CLI to latest version Angular, use ng update @angular/core @angular/cli@latest command.
Read more >
Upgrading to Angular 7 fails - Material Design for Bootstrap
This is caused by this, that the ng-uikit-pro-standard is not available on npm, so ng update won't find it and update. After updating...
Read more >

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