1

I want to update all my angular dependecies but whatever I did, I could not manage to update.

Package                                   Current  Wanted  Latest
@angular/animations                        5.2.11  5.2.11  7.2.15
ckoffice
@angular/cdk                                5.2.5   5.2.5   7.3.7
ckoffice
@angular/cli                                1.7.4   1.7.4   7.3.9
ckoffice
@angular/common                            5.2.11  5.2.11  7.2.15
ckoffice
@angular/compiler                          5.2.11  5.2.11  7.2.15
ckoffice
@angular/compiler-cli                      5.2.11  5.2.11  7.2.15
ckoffice
@angular/core                              5.2.11  5.2.11  7.2.15
ckoffice
@angular/forms                             5.2.11  5.2.11  7.2.15

ng command is not working unfortunatelly, how can I update without ng commad? I read millions of document but nothing works for me. ng command is not working unfortunatelly, how can I update without ng commad? I read millions of document but nothing works for me.

Adam
  • 2,726
  • 1
  • 9
  • 22
ozziem
  • 155
  • 3
  • 12
  • Does this answer your question? [How to update each dependency in package.json to the latest version?](https://stackoverflow.com/questions/16073603/how-to-update-each-dependency-in-package-json-to-the-latest-version) – Elikill58 May 29 '23 at 09:09

2 Answers2

0

You should run ng update command with --all option will attempt to update all packages in package.json file.

However, the caveat (which seems to apply also to your case) is that it won't proceed if it discovers that some package inter-dependencies are not met. One way to proceed anyways, is to add --force option.

Harijs Deksnis
  • 1,366
  • 1
  • 13
  • 24
0

Looks like npm-check-updates is the only way to make this happen now.

This Answer might help