I decided to give ionic a try today, and I’m running into issues when installing native extensions.
I’m still new to ionic/javascript, so I will outline the steps I’m taking:
npm install -g cordova ionic ionic start TestProject blank cd TestProject ionic cordova plugin add cordova-plugin-android-permissions
When prompted that The plugin @ionic/cli-plugin-cordova is not installed. Would you like to install it and continue? (Y/n) I say Y.
Then the error finally happens when I try to install the npm module for the cordova plugin:
It seems that the native plugins aren’t compatible with app-scripts version 2+. This happens with any of the other native cordova plugins I try to install, for example the BLE plugin as well.
I’ve tried to install an older version of the app-scripts (i.e., 1.x), but then when npm installs it, I get a red INVALID next to the app-scripts name after installation.
Since i migrated from -v1 to -v2 i got many errors. When i tried to migrate to -v3 everything broke.
What fixed everything to me was to create a new project with -v3 and putted all my pages in again was alot of work but worth it. I can now install everything again.
I hope this will fix your problem (if you migrated ofc).
Ionic native modules do not depend on @ionic/app-scripts. That error is probably caused by another module. If there is an unmet dependency, the warning is displayed on every command.