cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10975) 'plugin add ../local/path/to/plugin' cannot access plugin via parent directory. Fails with 404 from npmjs.org
Date Wed, 06 Apr 2016 12:57:25 GMT

    [ https://issues.apache.org/jira/browse/CB-10975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228199#comment-15228199
] 

ASF GitHub Bot commented on CB-10975:
-------------------------------------

GitHub user vladimir-kotikov opened a pull request:

    https://github.com/apache/cordova-lib/pull/421

    CB-10975 Allow plugin path to be relative to current directory

    JIRA: [CB-10975](https://issues.apache.org/jira/browse/CB-10975)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-lib CB-10975

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-lib/pull/421.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #421
    
----
commit 1ae162fbc7960e9eb3ceb438d372c15a41567afa
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Date:   2016-04-06T12:43:12Z

    CB-10975 Allow plugin path to be relative to current directory

----


> 'plugin add ../local/path/to/plugin' cannot access plugin via parent directory.  Fails
with 404 from npmjs.org
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-10975
>                 URL: https://issues.apache.org/jira/browse/CB-10975
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 6.1.1
>         Environment: Windows 7
>            Reporter: Brendan P Flynn
>            Assignee: Vladimir Kotikov
>              Labels: reproduced, triaged
>
> 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?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message