Open azharbeebeejaun opened 3 years ago
Hi,
Did you find a solution or workaround for this. I am facing the same issue.
Ionic:
Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 5.6.14 @angular-devkit/build-angular : 12.2.2 @angular-devkit/schematics : 12.2.2 @angular/cli : 12.2.2 @ionic/angular-toolkit : 4.0.0
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android 9.0.0, ios 5.1.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 11 other plugins)
Utility:
cordova-res : 0.15.4 native-run (update available: 1.6.0) : 1.5.0
System:
Android SDK Tools : 26.1.1 (/Users/krao/Library/Android/sdk) ios-sim : 8.0.2 NodeJS : v16.15.1 (/usr/local/bin/node) npm : 8.11.0 OS : macOS Monterey Xcode : Xcode 13.4.1 Build version 13F100
cordova plugin add git+ssh://git@bitbucket.org/XXX/XXX.git Failed to fetch plugin git+ssh://git@bitbucket.org/XXX/XXX.git via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL.
npm version is the root cause for this issue. Downgraded to version 6.14.17 and now I am able to add plugin successfully.
Description:
I'm trying to install a plugin (cordova-plugin-bugfender) from a git URL pointing to a specific commit.
ionic cordova
throws an error whilecordova
directly installs it without any issue. Command is available below.Steps to Reproduce:
Run the following command on an Ionic project based on the version dumps below.
Output:
My
ionic info
(andcordova info
):Other Information:
Possible related issue: https://github.com/ionic-team/ionic-cli/issues/2716. But, the error messages are not the same at first and the fixes don't work.
The same plugin can be installed using
cordova
directly but Ionic won't find it when building the project.From what I saw on https://github.com/apache/cordova-lib/issues/859, cordova-fetch@3.0.1 was released to fix this but issue still persists for me as I'm already up to date with that version.
Workaround From https://github.com/apache/cordova-cli/issues/541, I tried to downgrade npm using
npm install npm@6
and it fixes the issue on Ionic.