apache / cordova-fetch

Apache Cordova Fetch Library
https://cordova.apache.org/
Apache License 2.0
27 stars 27 forks source link

Install a cordova plugin by tagged version from a custom git repo fails #54

Closed duydao closed 4 years ago

duydao commented 5 years ago

We're having trouble installing plugins from a private git repository by url.

cordova plugin --verbose add git+https://gitlab.internal/cordova-plugin-our-custom-plugin.git

Adding an existing tag to the url to make cordova-fetch fail: cordova plugin --verbose add git+https://gitlab.internal/cordova-plugin-our-custom-plugin.git#1.11.0

The error implies, that the destination path could not be found:

Failed to get absolute path to installed module
    at C:\Users\xyz\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:173:37

Since --nofetch is deprecated in recent versions of cordova, is there a way to make this work?

duydao commented 5 years ago

It works if the module is not installed in node_modules yet

raphinesse commented 4 years ago

The error Failed to get absolute path to installed module has only been used in version 1 of this module. I'm afraid we can't support that anymore. Please update to a more recent version of Cordova. The issue you are describing should be fixed by that.