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

cordova plugin add doesn't support scoped packages from private registries

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.1
    • Component/s: cordova-lib
    • Labels:
    • Flags:
      Important

      Description

      STEP TO REPRODUCE:
      1) setup a private repo (for example sinopia with docker: https://github.com/kfatehi/docker-sinopia)
      2) add scope in your npm config: npm config set @myco:registry http://0.0.0.0:4873/
      3) create you plugin. In package.json set name: @myco/my.co.plugin.demo; in plugin.xml set plugin id: @myco/my.co.plugin.demo.
      3) publish plugin in your private repo:

      EXPECTED BEHAVIOR:
      cordova plugin are installed
      ACTUAL BEHAVIOR:
      cordova installation failed:
      Error: Failed to fetch plugin my.co.plugin.demo 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 E404
      npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/my.co.plugin.demo
      npm ERR! 404
      npm ERR! 404 'com.vipera.de.foundation.commons' is not in the npm registry.
      npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
      npm ERR! 404
      npm ERR! 404 Note that you can also install from a
      npm ERR! 404 tarball, folder, http url, or git url.

      However node module are correctly installed (verified with npm ls) and fetch.json have a new entry with key
      @my.co.plugin.demo.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                raphinesse Raphael von der GrĂ¼n
                Reporter:
                EnricoMazzu Enrico Mazzucchelli
              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m