cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-12787) cordova@7 plugin add --link is broken
Date Fri, 12 May 2017 11:51:04 GMT


ASF GitHub Bot commented on CB-12787:

GitHub user matrosov-nikita opened a pull request:

    CB-12787: Fix plugin installation with --link option

    Please make sure the checklist boxes are all checked before submitting the PR. The checklist
    is intended as a quick reference, for complete details please see our Contributor Guidelines:
    ### Platforms affected
    ### What does this PR do?
    Fix logic for installation plugins with `--link` option.
     - Use `npm link` instead of `npm install` during plugin fetch.
     - Find symbolic links in plugin's dir for plugin removal 
    ### What testing has been done on this change?
    ### Checklist
    - [x] [Reported an issue]( in the JIRA
    - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file
paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
    - [ ] Added automated test coverage as appropriate for this change.

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

    $ git pull CB-12787

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

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

    This closes #557
commit 0eb176af7f6b00984f3d41320a1ff6f7f494928c
Author: Nikita Matrosov <>
Date:   2017-05-12T11:26:05Z

    CB-12787: Fix plugin installation with --link option


> cordova@7 plugin add --link is broken
> -------------------------------------
>                 Key: CB-12787
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-fetch, cordova-lib
>    Affects Versions: 7.0.0
>            Reporter: Steve Gill
>              Labels: cordova-8.0.0
> with the change to cordova-fetch for local paths, cordova plugin add SOMELOCALPATH --link
doesn't work anymore. 
> The plugin first gets `npm installed` into your cordova project (so it now lives in node_modules),
and then it gets copied into your plugins directory. During the copy to your plugins directory
step, that is when the symlink gets created. So the symlink points to your node_modules/PLUGINDIR
and not the local path to your plugin.
> I believe the solution to fixing this would be to `npm link` the plugin instead of `npm
install` when adding it with `--link` flag. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message