I decided to give ionic a try today, and I’m running into issues when installing native extensions.
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
Then the error finally happens when I try to install the npm module for the cordova plugin:
npm install --save @ionic-native/android-permissions
I get a
UNMET PEER DEPENDENCY error:
+-- @firstname.lastname@example.org -- UNMET PEER DEPENDENCY @email@example.com
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.
Does anyone know what I should do?