Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71530

Can't install any native extensions

$
0
0

@w1res wrote:

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:

npm install --save @ionic-native/android-permissions

I get a UNMET PEER DEPENDENCY error:

+-- @ionic-native/android-permissions@3.14.0
-- UNMET PEER DEPENDENCY @ionic/app-scripts@2.0.0

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?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>