Could not resolve dependency from capacitor/storage@1.2.5

Issue: While running npm i you are getting the following error:

RR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"^3.0.0" from @capacitor/storage@1.2.5

The @capacitor/storage plugin has been renamed to @capacitor/preferences to better reflect it’s usage. The API remains the same.

You need to install preferences package:

npm install @capacitor/preferences
npx cap sync

For usage you can following the following reference: https://capacitorjs.com/docs/apis/preferences