-
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
ng update @angular/cli installs angular 8.2.0-next.0 #14980
Comments
Same error. |
I had the exact same issue, but resolved now . My environment was:
Running
However when I ran My environment now is:
|
Could you provide the dependency sections of the project's |
@clydin - sure, here they are:
|
I have a similar issue. I installed
My Angular versions were 8.0.3, the CLI version was 8.0.4. The application built, and the unit tests passed, so I am not too worried. But, it is odd. |
I had the same issue when updating from 7.2.14 to 8.1.0
|
Removing |
Ive seen the same issue with my projects. |
Same issue here... |
Also happening here and I couldn't find a way to make |
Same issue here, ng update cli and core didn't worked, don't want to remove @angulat/http |
@krischan1410 you may update it to In the other hand, I'm seeing this error for every new minor release since some time ago, the CLI must discard the |
Issue had fix when i use the following command with ng update @angular/cli @angular/core --force |
@matheo Thanks for the hint: Now I see that I don't use @angular/http at all. So removing it is not a bug fix for my environment :-) |
Same issue here:
Error when running ng update @angular/cli :
Update 1: solved by deleting node_modules/ and package-lock.json and running a fresh npm install |
@clydin @alan-agius4 Same issue with cli 8.1.1 OP sent a repro of the issue, were you able to reproduce it on your end ?
|
@hugodes just one clarification, on Whatever the issue is, it's being dragged along with new versions. |
Same issue here, please fix |
Same issue |
with 8.1.2 version have the same issue. |
For me the error appeared using @angular/cli installed globally. Installing locally solved my problem |
@ErVishalM: you are getting this error, because somehow angular cli thinks, that |
It is now having the same problem with the 9.0.0-next.2! Running
Running
|
@hpawe01 well not solved from this command also. see
|
I had the exact same issue, but resolved now . ng update @angular/[email protected] @angular/[email protected] @angular/[email protected] |
I hate ng update... |
I have the same issue when update Finally I update in following way:
|
@nzbin I'm pretty sure this would skip any automatic code migration that would be done by the |
I can confirm @nzbin case, same here from In my case it want to install This worked for me: |
@JohnnyDevNull I am getting the same error -
Please help us to resolve this issue on priority as we are unable to update angular cli and material |
Same issue from 7.2.14 to 8.2.2 this worked for me - |
Still does not work. How are we supposed to update? Setting the versions by hand does not work either: ng update @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected]
Using package manager: 'npm'
Collecting installed dependencies...
Found 51 dependencies.
Fetching dependency metadata from registry...
Package "@angular/common" has an incompatible peer dependency to "@angular/core" (requires "9.0.0-next.2" (extended), would install "8.2.2").
Package "@angular/platform-browser-dynamic" has an incompatible peer dependency to "@angular/common" (requires "8.2.2", would install "9.0.0-next.2")
Package "@angular/platform-browser" has an incompatible peer dependency to "@angular/common" (requires "8.2.2", would install "9.0.0-next.2")
Package "@angular/common" has an incompatible peer dependency to "@angular/core" (requires "9.0.0-next.2", would install "8.2.2")
Package "@angular/flex-layout" has an incompatible peer dependency to "@angular/common" (requires ">=8.0.0-rc.5", would install "9.0.0-next.2").
Package "@angular/router" has an incompatible peer dependency to "@angular/common" (requires "8.2.2", would install "9.0.0-next.2")
Package "@angular/forms" has an incompatible peer dependency to "@angular/common" (requires "8.2.2", would install "9.0.0-next.2")
Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later. |
Guys, this is a showstopper. If this was a commercial release it would be withdrawn until this issue was resolved. As things stand, following the update instructions results in unreleased beta software being installed. You have to resolve this or pull the update instructions. |
@colmben A showstopper? Please! This is an inconvenience, at worst. The issue was reported over a month ago, and it hasn’t kept me from getting the proper version of Angular installed in my applications. Don’t be so dramatic. |
@rdrrichards Ah great, can you expand on how you safely update all angular packages? In good faith, I'm stuck with this |
Nothing magical, really. After seeing this issue come up, all I do is edit the packages.json file, and change all occurrences of If you're not comfortable with editing the packages.json, try to get some level of comfortable with it. Obviously, relying on the tools 100% of the time can be disappointing. If this issue were a real show showstopper, the Angular CLI team would have had it fixed by now. Working around this is quite easy. |
I don't know how you get to the point where you have Bypassing https://github.com/angular/angular-cli/blob/master/packages/angular/cli/commands/update-impl.ts and the rest doesn't seem trivial to me - at least I cannot safely envision the consequences. IMO, relying on a toolchain is not a weakness but rather the basis for successful devops: having those shortcuts and not caring about the gory details is part of why I chose Angular in the first place :) I hope a safe workaround can be found until it's fully fixed in a future release. |
Same thing just happened to me. Updated from 8.0.0 to what I thought would be 8.2.2, updated all the way to ~9.0.0-next.2. Bit of a surprise... |
Doing that you're asking for trouble. Let me explain it a little here. When you ran |
This is exactly what happened to me, it updated 30+ source files beyond the 3 that actually needed updating for 8. All quite scary and time consuming for what should be a simple enough framework update. I did exactly what rdrrichards suggests and so now I have an app that is using 8 but migrated to 9. It seems to be working, but I haven't diff'ed all 30+ files yet to understand what the implications are. For a commercial developer this is all time wasted that could have been spent writing code - the exact point of using a framework like Angular in the first place. Obviously we all have different definitions of what is a showstopper, but releasing an update procedure that causes unreleased beta code to be loaded onto your client severs and all your client's code go through an unreleased migration process seems to me to fall within that category. |
Hey folks, we're aware of this problem and @clydin is looking into it. Since the discussion is getting a bit heated, I'll lock the issue temporarily until we have some progress. Excuse us for the inconvenience and thank you for your patience! Side note: if you're already on version 8.x, updating your |
This should be resolved now in latest 8.3.x builds. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: ....Updating angular cli from
8.0.6
to8.1.0
also updates other angular packages to8.2.0-next.0
(next
npm tag)Description
A clear and concise description of the problem...The cli should update to
latest
instead ofnext
npm tag.🔬 Minimal Reproduction
create a angular workspace with angular 8.0.6 and upgrade to 8.1.0
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: