angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng update @angular/core fails

Open markgoho-EDT opened this issue 8 years ago • 83 comments

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

  • Follow steps at https://update.angular.io/
  • ng update @angular/core

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"

markgoho-EDT avatar May 04 '18 00:05 markgoho-EDT

For future reference. I got frustrated trying so many "solutions" with no avail so I decided to just run the following command.

$ ng update --all --force

It was a wild gamble and took a while to update but now everything is working and my project is up-to-date.

kobusbeets avatar Oct 24 '18 02:10 kobusbeets

ng update --all --force worked for me also.

@kobusbeets I can't say it was a "wild gamble" though, not with a version control system.

daverickdunn avatar Mar 11 '19 11:03 daverickdunn

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.