When i try to execute npm install am getting below error. Please let me know why this error coming, how to understand below error
npm ERR! While resolving: @ionic-native/android-permissions@5.36.0
npm ERR! Found: rxjs@7.4.0
npm ERR! node_modules/rxjs
npm ERR! peer rxjs@"^6.5.3 || ^7.4.0" from @angular/cdk@15.0.0
npm ERR! node_modules/@angular/cdk
npm ERR! peer @angular/cdk@"15.0.0" from @angular/material@15.0.0
npm ERR! node_modules/@angular/material
npm ERR! peer @angular/material@"15.0.0" from @angular/material-moment-adapter@15.0.0
npm ERR! node_modules/@angular/material-moment-adapter
npm ERR! @angular/material-moment-adapter@"15.0.0" from the root project
npm ERR! 1 more (the root project)
npm ERR! @angular/cdk@"15.0.0" from the root project
npm ERR! peer rxjs@"^6.5.3 || ^7.4.0" from @angular/common@15.0.0
npm ERR! node_modules/@angular/common
npm ERR! peer @angular/common@">=6.1.0" from @angular-slider/ngx-slider@2.0.4
npm ERR! node_modules/@angular-slider/ngx-slider
npm ERR! @angular-slider/ngx-slider@"2.0.4" from the root project
npm ERR! peer @angular/common@"^15.0.0 || ^16.0.0" from @angular/cdk@15.0.0
npm ERR! node_modules/@angular/cdk
npm ERR! peer @angular/cdk@"15.0.0" from @angular/material@15.0.0
npm ERR! node_modules/@angular/material
npm ERR! peer @angular/material@"15.0.0" from @angular/material-moment-adapter@15.0.0
npm ERR! node_modules/@angular/material-moment-adapter
npm ERR! 1 more (the root project)
npm ERR! 1 more (the root project)
npm ERR! 6 more (@angular/forms, @angular/material, ...)
npm ERR! 6 more (@angular/core, @angular/forms, @angular/material, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@"^5.5.0 || ^6.5.0" from @ionic-native/android-permissions@5.36.0
npm ERR! node_modules/@ionic-native/android-permissions
npm ERR! @ionic-native/android-permissions@"5.36.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: rxjs@6.6.7
npm ERR! node_modules/rxjs
npm ERR! peer rxjs@"^5.5.0 || ^6.5.0" from @ionic-native/android-permissions@5.36.0
npm ERR! node_modules/@ionic-native/android-permissions
npm ERR! @ionic-native/android-permissions@"5.36.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Here am using rxjs 7.4.0 only. but still it says error
I think this error was already reported here . The problem is that you are trying to use RxJS 7 but Ionic Native needs RxJS 5.5 or 6.5.
From the error message, looks like you're using @ionic-native/core@5.36.0
and according to the CHANGELOG this issue was fixed in 5.36.1
, so the easiest way to fix this would be to update your package.json
file to use the 5.36.1
version of ionic/native
/ awesome-cordova-plugins
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.