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

'plugin add ../local/path/to/plugin' cannot access plugin via parent directory. Fails with 404 from npmjs.org

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.1.1
    • None
    • cordova-cli
    • Windows 7

    Description

      cordova app directory structure:
      app
      -/bin (build scripts)
      -/custom_plugins
      -/com.myorg.myplugin
      -/platforms
      -/plugins
      -/test
      -/www

      These attempts to add the plugin work in the command line:
      C:...\app\bin>cordova plugin add ../custom_plugins/com.myorg.myplugin --searchpath ../
      AND
      C:...\app>cordova plugin add custom_plugins/com.myorg.myplugin

      This attempt does not work in command line:
      C:...\app\bin>cordova plugin add ../custom_plugins/com.myorg.myplugin

      Error: Registry returned 404 for GET on https://registry.npmjs.org/myorg

      Despite the example [cordova plugin add ../cordova-plugin-camera] from the docs (https://cordova.apache.org/docs/en/latest/reference/cordova-cli/index.html#cordova-plugin-command)

      If --searchpath is required to find a local plugin in a parent directory, then that should be documented and the examples should be changed.

      If --searchpath is not required, then this is a bug?

      Attachments

        Activity

          People

            vladimir.kotikov Vladimir Kotikov
            brendanpflynn@gmail.com Brendan P Flynn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: