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.

Angular project's version updating is a extra hassel

See original GitHub issue

Like when I try to update my angular version 11 project to angular version 12 , I run ng update then its shows

✔ Package successfully installed.
Using package manager: 'npm'
Collecting installed dependencies...
Found 0 dependencies.
    We analyzed your package.json, there are some packages to update:

      Name                               Version                  Command to update
     --------------------------------------------------------------------------------
      @angular/cdk                       11.0.0 -> 12.2.10        ng update @angular/cdk
      @angular/cli                       11.2.0 -> 12.2.10        ng update @angular/cli
      @angular/core                      11.0.0 -> 12.2.10        ng update @angular/core
      @angular/material                  11.0.0 -> 12.2.10        ng update @angular/material
      @ngrx/store                        8.6.0 -> 12.5.0          ng update @ngrx/store

    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.

then I run ng update --allow-dirty --force --verbose & got same output as ng update all though --all is deprecated. I also runs ng update @angular/cdk @angular/cli @angular/core @angular/material

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 0 dependencies.
Package '@angular/cdk' is not a dependency.

Actually what is going on here. What’s wrong ? I’m totally fed-up didn’t get any useful solution on https://angular.io/cli/update here. Please make it more convenient and explain in more detail manner so that if someone want to update project he could easily update project without this kinda of common hassel.

Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
LAlves91commented, Oct 15, 2021

@sefatanam YEEEAH! Glad I could help! Cheers!

1reaction
sefatanamcommented, Oct 15, 2021

✔ It worked. Thanks @LAlves91 for your support & patient.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keeping your Angular projects up-to-date
Angular Versioning and Releases describes the level of change that you can expect based a release's version number. It also describes supported update...
Read more >
Upgrading Angular versions has to be the most frustrating ...
Upgrading from 12-13 to eventually 14. First problem: Package "@angular-eslint/schematics" has an incompatible peer dependency to ...
Read more >
Is it safe to update a production app to the latest version of ...
It is safe to update to each new version of Angular. Not only is it safe, you had better do it. It will...
Read more >
How often should you update angular/node packages
So I basically have two options: Update the project and all it's modules very regularly, which can become a hassle I think; Lock...
Read more >
the installed angular cli version is older than the latest stable ...
I'm trying to upgrade an old app to the latest version of Angular (7 ... angular/angular-cliAngular project's version updating is a extra hassel#21960....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

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