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.

Documenting how to update to specific angular version with `ng update`.

See original GitHub issue

🚀 Feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

There are some situation that we want to update to specific version, to not latest angular version.

But, there are no description for how to update to specific angular version with ng update in update.angular.io and ng update reference. Caution: not “migrate only update”. I refer about update the installed version.

By the way, Acording to angular-cli/docs/specifications/update.md ,

Each package follows the convention of [@scope/]packageName[@version-range-or-dist-tag].

So we can use next command to update specific Angular version.

ng update @angular/cli@7.0.0 @angular/core@7.0.0

Is this above method that update to specific version is defined correctly? And this is a little hard to find how to update to specific version. I am so happy if there is documented at update.angular.io or ng update reference.

related : https://stackoverflow.com/questions/52970467/ng-update-to-specific-angular-version

Describe the solution you’d like

How about documenting how to update to specific angular version with ng update in update.angular.io and ng update reference?

ng update @angular/cli@7.0.0 @angular/core@7.0.0

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jbogarthydecommented, Oct 17, 2019

The CLI API doc is in the CLI repo, https://github.com/angular/angular-cli/ I should probably do this, these use a different generation process that is a bit tricky.

1reaction
IgorMinarcommented, Oct 2, 2019

please use ng update @angular/cli@^<major_version> @angular/core@^<major_version> instead. e.g. ng update @angular/cli@^7 @angular/core@^7. This means take the latest 7.x.x version and use that to update. In general we recommend that you use the latest patch version during update as it contains fixes we released since the initial major release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - ng update to specific version - Stack Overflow
(you can define specific versions of the packages by going to npm packages, for example - @angular/core@9.1.2 as 9.1. 2 is the latest...
Read more >
ng update - Angular
Perform a basic update to the current stable release of the core framework and CLI by running the following command. ... To update...
Read more >
Update from Angular 9 to Angular 11 - WebMAP Documentation
Update Existing Projects to Angular 11 · 1. Install Node.js, version 14.15 or above is required. 1. Download the latest Node.js release from...
Read more >
Angular 9 to Angular 11 - Step by Step Guide - Ideas2IT
The ng update command automatically migrates the required packages and versions. The NPM update should also help you upgrade to the latest version...
Read more >
How to Update Angular Projects to the Latest Version - SitePoint
Jurgen explains how Angular versions work, where to find instructions for upgrading Angular, and how to update Angular projects to the ...
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