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

Cannot add plugin from git+ssh URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • OS X 10.13, Node 8.9.1, NPM 5.5.1, Cordova 7.10

    Description

      I cannot add a plugin to Cordova using a git+ssh URL. The following error is returned:

      $ yarn cordova plugin add git+ssh://git@bitbucket.org/bar/foo.git
      yarn run v1.3.2
      $ /Users/alex/Software/IINU/foo/node_modules/.bin/cordova plugin add git+ssh://git@bitbucket.org/bar/foo.git
      Error: Failed to fetch plugin git+ssh://git@bitbucket.org/bar/foo.git via registry.
      Probably this is either a connection problem, or plugin spec is incorrect.
      Check your connection and plugin name/version/URL.
      Failed to get absolute path to installed module
      error Command failed with exit code 1.
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      

      However, if I specify the -nofetch argument, it succeeds. This is clearly not ideal going forwards, since -nofetch is considered a backwards-compatibility option.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexreg Alexander Regueiro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: