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

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

Notify of
avatar

伪降者
Guest
伪降者
1 month 5 days ago

well, I choose cnpm in china.. 🙁

Wee Ching Chok
Guest
Wee Ching Chok
1 month 6 days ago

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

Mike Valeriano
Guest
Mike Valeriano
1 month 12 days ago

hey guys, member bower? i member!

Ahmad Aziz
Guest
Ahmad Aziz
1 month 17 days ago

xD almost boom

Bloik
Guest
Bloik
2 months 2 days ago

You should make a discord.js tutorial

Jason Chan
Guest
Jason Chan
2 months 3 days ago

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

Joshua Davidson
Guest
Joshua Davidson
2 months 5 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
2 months 6 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
2 months 5 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
2 months 7 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!!!!!!

bmk 11
Guest
bmk 11
2 months 10 days ago

How much math is in JavaScript & is it tough because I suck at math?How much does it take to learn the basics if you set your goal, let's say, to code 2 hours a day?Thanks.Your channel is amazing!Greetings from Bosnia.

1 2 3 5
wpDiscuz