Unable to get sms-retriever plugin working due to dependencies

Hi
I am trying to use https://ionicframework.com/docs/native/sms-retriever plugin in my app to read sms without any permission.
But I am getting issue which npm install , I get below error.

npm WARN @ionic-native/sms-retriever@5.17.1 requires a peer of @ionic-native/core@^5.1.0 but none is installed. You must install peer dependencies yourself.

I have @ionic-native/core : “~4.20.0” in my package.json .

Any idea how can I enable and install this plugin?

Thanks
Rahul

All ionic-native/* things must have the same major version. Edit your package.json accordingly.

But if i change package.json with @ionic-native/sms-retriever@^4.20.0 i get below error

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @ionic-native/sms-retriever@^4.20.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of ‘driver-app’
npm ERR! notarget

That would suggest to me to go the other way, and bring everything up to 5.x.

1 Like