-
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 upgrade: incompatible peer dependency error prevents from auto-updating #10875
Comments
@clydin Hi, I was chatting about this in the Angular Slack with @filipesilva and he told me to open the issue here. Let me know if you need more info. Thanks a lot 👍 |
I'm running into a similar issue when trying to update NgRx. If I have all the
If I run
|
Not sure if it's the same thing, but I'm getting errors like:
I'm using the bootstrap SCSS framework but have no intentions of ever including jQuery ofc. I dunno if this is a problem with bootstrap itself that it has jquery as a peerDep or if the problem is that CLI throws for peer dep WARN. Is it perhaps possible to just force the |
I have the same issue, but instead run |
I'm running into this issue as well, seems the updater is trying to install |
When I ran "ng update @angular/core" got the following errors and cannot upgrade to angular 6: |
Just so its noted, the workaround is to use the
|
@sachinpachori Those are actually legitimate errors. The project has a dependency ( |
@brandonroberts @clydin thank you that solved my issue. |
I could have faced incompatible peer dependency issues when i ran the command ng update @angular/core to update the core library of the existing angular project. Issues Package "@angular/cdk" has an incompatible peer dependency to "@angular/common" (requires ">=5.0.0-rc.0 <6.0.0||>=4.0.0 <5.0.0", would install "6.0.0"). in second time i used the following command to update the core library issue had fix when i use the following command with --force flag, now, my project library has been updated from version 4 to 6. Well done :) Good Luck !!! |
ng update @angular/core --next --force works for me |
I'm doing a fresh install of my npm modules, and running into this issue:
But angular-devkit/[email protected] is installed. Is using --force still the recommended workaround? |
@Sharondio You're installing |
@clydin They are installed globally. Still getting error. |
If |
So I figured out that
Note that I had to update some dependencies because
and also
Thanks for the great work! |
I just ran
and the output was (ok):
|
If anyone's still running into this error you could try running npm i --save-dev [email protected] before running ng update @angular/core instead of forcing ng update --next --force which ignores those warnings and installs beta packages. |
ng update @angular/cli this will do the trick |
At this time, just the update as @demonguru18 said should work. |
Here is an Starter Project I created for Asp.net Core 2.1, Angular 7.0.3 and Bootstrap 4.1.3 You can download this project and start. In case you want to start from scratch If updating old project, follow this first run ng update --all ** If you get an error saying,
|
For Angular 7: first upgrade to [email protected]: https://github.com/mgechev/codelyzer/blob/master/CHANGELOG.md, after that, you can run the ng update @angular/cli command |
try
|
Hi you need to upgrade jQuery to use bootstrap 4. In you package manager file change the version of jQuery. Like in my libman.json file i have it like this
|
I've tried executing ng update --all --force but I still get the error Tried: UPDATE package.json (1579 bytes) npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\Users\Ben\Projects\QuixxiStaging\node_modules\fsevents\node_modules' |
Hi, be careful with this command, |
when bootstrapping angular application What are the order priorites while bootstrapping and main-usage of those file, if any one knows Please clearly explain. index.js package.json, tsconfig.json, tsconfig.app.json, tsconfig.spec.json, angular.json |
@adhivenkatesh the Angular Bootstapping Guide might be helpful as well as the Project File Structure Guide. However, I'm not sure that they address that exact question. |
Yes , splaktar, good day, thanks for your revert, i will go through the angular bootstrapping guide, thank you. |
Hi i think some of the files corrected i am using angular 7 version , ======================= error =============
|
@adhivenkatesh please open a new issue with a reproduction. |
> ng update @angular/cli @angular/core @angular/material --next --force - --force: force update peerDependencies - share anonymous usage data: no - https://update.angular.io/#7.2:8.0 - angular/angular-cli#10875 (comment)
> ng update @angular/cli @angular/core @angular/material --next --force - --force: force update peerDependencies - share anonymous usage data: no - https://update.angular.io/#7.2:8.0 - angular/angular-cli#10875 (comment)
I am getting the same error when I am upgrading from version 5 to version 6 but running |
@Riccardo-Andreatta |
I didn't want to use I found a solution to the above that worked for me. I installed the latest codelyzer
then ran the |
Thanks charlie for your suggestion, will follow the suggestion when i get
any further issues/errors.
Thank You,
Adhi Venkatesh.,Banglore,India.
…On Wed, Jul 3, 2019 at 10:38 PM Charlie Walter ***@***.***> wrote:
I didn't want to use --force as it installs betas and also one shouldn't
have to.
I found a solution to the above that worked for me. I installed the latest
codelyzer
npm install ***@***.***
then ran the ng update @whatever I needed to do and it worked with no
complaints.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10875?email_source=notifications&email_token=AG5YZMSI2J2LCKZXQHPFAPDP5US5HA5CNFSM4FABH5TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZF3GNI#issuecomment-508277557>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG5YZMW67XWJJ2HEUP42XCTP5US5HANCNFSM4FABH5TA>
.
|
Reinstalling cli worked for me as it installed latest. after this all ng update worked |
@Splaktar I have tried the I had to install the specific version ( |
The |
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. |
Versions
Repro steps
upgrade
branch of repo https://github.com/juristr/ng-upgrade-testyarn install
(ornpm install
=> I used yarn)ng update @angular/core
. I already performed the@angular/cli
upgrade command which adjusts theangular.json
etc.Observed behavior
I get the following output
Desired behavior
It should automatically update the Angular dependencies as well as RxJS and TypeScript (as described in the
update.angular.io
guide).Mention any other details that might be useful (optional)
The text was updated successfully, but these errors were encountered: