Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14182

Cordova 7 and 8 cannot add plugin from our bitbucket

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Incomplete
    • Affects Version/s: cordova@7.0.0, cordova@8.0.0
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
      None

      Description

      Hi, im trying to install a custom cordova plugin we made, that is located in our corporative Bitbucket server: https://cis.ieci-servicios.com/bitbucket/scm/omnia/nativepluginomnia.git and it worked and installed fine with cordova 6.5 and bellow, but since cordova 7, it just refuses to install with the following error:

      Command: $ cordova plugin add https://cis.ieci-servicios.com/bitbucket/scm/omnia/nativepluginomnia.git

      (node:27674) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch plugin https://cis.ieci-servicios.com/bitbucket/scm/omnia/nativepluginomnia.git via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: npm: Command failed with exit code 1 Error output: npm ERR! code E501 npm ERR! 501 Not Implemented: https://cis.ieci-servicios.com/bitbucket/scm/omnia/nativepluginomnia.git npm ERR! A complete log of this run can be found in: npm ERR! /Users/a67303198/.npm/_logs/2018-06-29T10_34_27_047Z-debug.log at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:173:37 at _rejected (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:864:24) at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:890:30 at Promise.when (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:1142:31) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:808:41) at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:624:44 at runSingle (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:137:13) at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:125:13) at process._tickCallback (internal/process/next_tick.js:61:11) (node:27674) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:27674) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      

      The plugin is up to date, it has a package.json, it has everything i can think of that can cause a problem...

      Can someone help me?

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              markos92i Marcos
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: