Question updated
I am currently adding plugins to my cordova project using the cordova plugin add x command. I believe this uses npm in the background.
Does anyone know how I can switch npm for js yarn (inside the cordova, I want the cordova to use yarn instead of npm), since that would make such a huge difference in terms of caching (other than updating the cli cord).
Conclusion
December 2016
It seems that installing yarn means that yarn takes with npm as the default package manager, and thus things are accelerated by default and that no manipulation of Cordova is required.
September 2017
It seems that I was mistaken, apparently, Cordoba is hard-coded to use npm, https://issues.apache.org/jira/browse/CB-12242 . I will reopen this problem to ask Apache to do this.
source share