You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Steve Gill (JIRA)" <ji...@apache.org> on 2015/10/22 20:44:27 UTC

[jira] [Commented] (CB-9846) Plugins declared in the config.xml aren't listed on cordova plugin ls command

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

Steve Gill commented on CB-9846:
--------------------------------

We don't use npm install to install plugins. Our dependency structure doesn't allow this.

If you look at package.json of that repo, you won't see any plugins listed. 

Plugins need to be installed. Couple ways to do this

1) Manually install them `cordova plugin add PackageName`
2) restore them from config.xml. `cordova prepare` does this. Adding a platform a platform also runs cordova prepare. cordova build also runs cordova prepare. If you have platforms listed in config.xml, cordova prepare would add those platforms as well. 




> Plugins declared in the config.xml aren't listed on cordova plugin ls command
> -----------------------------------------------------------------------------
>
>                 Key: CB-9846
>                 URL: https://issues.apache.org/jira/browse/CB-9846
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 5.3.2
>         Environment: Windows 10 Entreprise
>            Reporter: Diego Geffner
>
> The plugins that appear on the config.xml file, but are not yet installed, aren't listed on plugin ls command output.
> For example, if you get: this app https://github.com/thinkmill/reacteu-app , and do:
> npm install
> npm run build
> and you do cordova plugin ls you get no plugins
> then if you add, cordova platform add android it says that it discovers the plugins, and after that if you do again cordova plugin ls  you'll see the list of plugins.  
> I think this behavior is confusing.



--
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