Published on March 13, 2017 by LearnCode.academy

Yarn is the hot new drop-in NPM replacement utility for projects using node.js packages. It’s way faster, more stable, and more secure than NPM and you can use it with zero configuration on your end.

In the sample for this video, the NPM install takes between 20 and 30 seconds for just a few packages, while the yarn install takes 4-10 seconds to install all of the node packages.

Yarn is also more predictable across environments, so you don’t need to npm-shrinkswrap anything, because Yarn manages the dependency tree with a yarn.lock file automatically.

Leave a Reply

101 Comments on "Yarn vs NPM – You won’t believe how fast it is"

Notify of
avatar

kzif
Guest
kzif
4 days 14 minutes ago

BOOM! Almost BOOM! BOOM!

伪降者
Guest
伪降者
3 months 2 days ago

well, I choose cnpm in china.. 🙁

Wee Ching Chok
Guest
Wee Ching Chok
3 months 4 days ago

I hate new wheel. NPM open source too. Just merge it.

Mike Valeriano
Guest
Mike Valeriano
3 months 9 days ago

hey guys, member bower? i member!

Ahmad Aziz
Guest
Ahmad Aziz
3 months 14 days ago

xD almost boom

Bloik
Guest
Bloik
4 months 4 hours ago

You should make a discord.js tutorial

Jason Chan
Guest
Jason Chan
4 months 11 hours ago

so many tools. Im going to use this now. haha

Joshua Davidson
Guest
Joshua Davidson
4 months 2 days ago

Yark lock looks nice but when it comes to caching, npm has had it for some time already. You just need to enable it. medium.freecodecamp.com/npm-cache-the-unsung-hero-11e646c09791#.y5tnb4ebj

Web-Crunch
Guest
Web-Crunch
4 months 3 days ago

I'm "used" to npm but I've tried yarn very briefly and liked it a lot. Can you reference the same npm packages via yarn? Thanks for the insight!

LearnCode.academy
Guest
LearnCode.academy
4 months 3 days ago

Yep, it still uses the npm registry by default. It just parallelizes the requests for speed and manages the requested-versions better with yarn.lock

Shiv NiceGuy
Guest
Shiv NiceGuy
4 months 4 days ago

Can you pleaseeeee make a video on how to move 2 SkSpriteNodes simultaneously with touchesmoved. I am making a one device , multiplayer game and I cannot find a way to move 2 SpriteNodes at the same time using 2 different fingers. I also can't find a updated solution anywhere on the internet. In swift 3!!!!!!

1 2 3 5
wpDiscuz