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

[Windows] Install cordova plugins from private gitlab repository failed with status code 406.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 7.0.0
    • None
    • Windows 7
      node v6.10.3
      npm v3.10.10
      cordova 7.0.0

    Description

      When I install a cordova plugin from a private gitlab repositroy in Windows, I get a HTTP 406 error.
      However, the same plugin can be installed successfully in Mac.
      I also tried the other two windows PC, but without luck.

      The command I used:

      cordova plugin add http:///XXX/cordova-plugin-statusbar.git

      The errors from the console:

      Error: Failed to fetch plugin http://XXX/cordova-plugin-statusbar.git via registry.
      Probably this is either a connection problem, or plugin spec is incorrect.
      Check your connection and plugin name/version/URL.
      Error: cmd: Command failed with exit code 1 Error output:
      npm ERR! fetch failed http://XXX/cordova-plugin-statusbar.git
      npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 406

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xuchaobei Xu Chao
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: