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-12242) Use yarn js instead of npm when adding plugins
Date Mon, 04 Jun 2018 16:49:00 GMT


ASF GitHub Bot commented on CB-12242:

dpogue commented on issue #292: CB-12242 : Use yarn instead of npm
   Not speaking for anyone else here, but I'm not especially in favour of adding additional
complexity and maintenance burden to several layers of Cordova libraries for very little benefit.
Cordova made the decision to use npm, and with the improvements in npm 5 and 6 it's arguable
whether there's any advantage to yarn (especially in this limited use case).
   We know that there are some issues with how cordova-fetch is using npm, but I'd rather
fix those as opposed to doubling the amount of testing everyone needs to do to support two
package managers with different command syntaxes.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Use yarn js instead of npm when adding plugins
> ----------------------------------------------
>                 Key: CB-12242
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-cli, cordova-lib
>            Reporter: Jacques de Villiers
>            Priority: Major
> Currently it can take quite long to add certain plugins to my project (using cordova
plugin add), especially if I need to re-add the plugins. My suggestion is to update the cordova
cli to start using yarn js instead of npm directly.
> When I looked at this page, I realised yarn was just a wrapper for npm, and much better
at caching packages locally.
> I would imagine this change would be relatively straightforward, and would be a massive
win for the cli.
> I was thinking of creating a fork to do a PR but realised I am not totally sure how to
proceed on this.

This message was sent by Atlassian JIRA

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

View raw message