[英]not able to understand below Error message
When i try to execute npm install am getting below error.当我尝试执行 npm 安装时出现以下错误。 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.这里我只使用 rxjs 7.4.0。 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.
问题是您正在尝试使用 RxJS 7,但 Ionic Native 需要 RxJS 5.5 或 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
.从错误消息来看,您似乎正在使用
@ionic-native/core@5.36.0
并且根据CHANGELOG此问题已在5.36.1
中修复,因此解决此问题的最简单方法是将您的package.json
文件更新为使用ionic/native
/ awesome-cordova-plugins
的5.36.1
版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.