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

Cannot add plugin from git+ssh URL

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              Unassigned
              Reporter:
              alexreg Alexander Regueiro

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment