-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand documentation for ng update
#12243
Comments
I have the same problem: How to fix this? |
It’s worth noting that a year and a half later, every problem I outlined above is still present. I get that no one likes to update documentation, but come on folks. Please have someone spend 15 minutes to write more than one sentence on this essential command? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm trying to do something that should be utterly trivial: update an Angular CLI 6.1.1 app to the latest version of 6.x.
Apparently, I'm supposed to use
ng update
to do this. But I have absolutely no idea what this command actually does, and the docs don't help at all.Consider:
Hmm...OK, I'm positive that more than cli and core need to be updated. Why aren't the other packages listed? There's a note that "there might be additional packages that are outdated". Might? Can't the CLI see exactly what needs updating?
But OK, let's try it with
--all
and use--dry-run
to try and see what will happen:OK, now I'm even more confused. Why is
ng update
doing anything with bootstrap? Andcompiler-cli
wasn't even listed in the earlier list. Finally, ifng update
is going to updatecompiler-cli
, shouldn't it know thattypescript
(obviously being a dependency ofcompiler-cli
) would be getting updated too?Basically, I have no idea what's going on or what's going to happen if I run
ng update --all
. What will be updated? Right now, it sounds like I just have to run it and hope that it knows what it's doing.I think a lot of confusion could be avoided if the
ng update
docs were more than one (vague) sentence long. I'd take a shot at updating the docs myself, but I literally have no idea what this command actually does (other than "it updates something"). Could someone take a few minutes and expand the docs on this command? Because I assume that in-version updates like this are far more common than full version updates.The text was updated successfully, but these errors were encountered: