Being subscribed to the Javascript Weekly newsletter, I received an email last week about a new node package manager: Yarn.
Built by Facebook, and knowing how good the tools they build are, I decided to give it a go.
To be honest, NPM slowness was really starting to frustrate me..
I won’t cover how to migrate from NPM to Yarn as it’s been covered by the Yarn docs already.
So, I did a quick test this morning and timed it.
Running yarn install vs. npm install for the first time today got me these results:
|
|
Quite a significant difference already hey!? More than 12 seconds faster!
Then I went on and run those commands a second time:
|
|
Much much faster!
Now, I often use the help, as being old (yeah … right …), I do sometimes forget the other subcommands that I don’t often use, here are the timings:
|
|
Convinced yet?
One caveat is that Yarn (v0.15.1) doesn’t seem to include a search subcommand like NPM does.