DroidOS
DroidOS

Reputation: 8910

Unable to add cordova plugin after cordova cli update

I have been using Cordova CLI v 6.5.0 to create my hybrid Android app which uses a custom plugin of my own making. The full toolchain is

This has always worked without an issue. I had not upgraded to Cordova CLI 7.0.1 till today since I still supported Android 4.4 and the base version with 7.0.1 is 5.0. Having made the decision to drop support Android v 4.4 support today I decided to upgrade Cordova CLI and immediately ran into some unpleasant surprises

I do not understand these errors - perhaps someone here will be able to shed some light.

Upvotes: 0

Views: 164

Answers (1)

DaveAlden
DaveAlden

Reputation: 30366

Try using --nofetch to install without using the new npm install mechanism:

cordova plugin add path:\to\my-plugin --nofetch

See https://cordova.apache.org/news/2017/05/04/cordova-7.html

Upvotes: 1

Related Questions