Error using npm install

I am getting this error in my ionic application. whenever I run some NPM install command.


npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: beta@0.0.1
npm ERR! Found: @capacitor/core@3.1.2
npm ERR! node_modules/@capacitor/core
npm ERR! @capacitor/core@“3.1.2” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"^3.2.0" from @capacitor/android@3.2.2
npm ERR! node_modules/@capacitor/android
npm ERR! @capacitor/android@"^3.1.2" 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.

Any suggestion?