Updated Question:
When adding plugins to my Cordova project, I currently use the command cordova plugin add x
, which I believe utilizes npm in the background.
Is there a way to switch out npm for Yarn within Cordova? This change would greatly impact caching efficiency without needing to manually update the Cordova CLI.
Summary:
December 2016
It was previously thought that by installing Yarn, it would automatically replace npm as the default package manager in Cordova, resulting in faster performance without any additional configurations needed.
September 2017
Contrary to prior belief, it appears that Cordova is hardcoded to use npm. Further details can be found at . I will reopen this issue to propose making Yarn an optional choice supported by Apache.