It's time to ditch Medium for good! 🌈⚡️

Introducing Devblog by Hashnode. Blog on your domain for FREE. Highly customizable and optimized for developers.

Learn more

Ask anything to Yarn Team

Yarn is a package manager for your code. It allows you to use and share code with other developers from around the world. Yarn does this quickly, securely, and reliably so you don’t ever have to worry.

Hosted by:

Ask a Question

60 discussions

Why should I use Yarn instead of NPM?

The main selling point on smaller projects is that Yarn is much faster than npm. For larger projects we outlined why we built Yarn here: https://code.facebook.com/posts/1840075619545360/yarn-a-new-package-manager-for-javascript/

A lot of other things like added security and determinism aren't something people think about every day but because Yarn uses a lockfile and installs are reproducible, you'll never run into "works on my machine" problems again. Every install of a project will produce the same dependencies.

Reply to this…

Share your programming knowledge and learn from the best developers on Hashnode

Get started

The fact that Yarn is built by brilliant heads from giant companies is enough to make us look into it, but how does yarn tackle security issues while loading dependencies. "npm allows scripts to run while installing dependencies".How does Yarn Solve that ?

Reply to this…

Hi.

First of all, congratulations, team. Yarn's performance boost alone worths everything.

But before starting develop yarn, did you talk with npm's team about opensourcing/work with the npm and inprove it?

(my personal opinion) Reviewing large Open Source pull requests is very hard because you have to preserve backwards compatibility and make sure you don't break the world.

For a project like npm CLI the cost of changes is high and it would take us too long to communicate to get the ideas and code landed into the project.

We had our goals - performance, determinism and security considerations and the most efficient way would be to write a new tool from scratch.

Reply to this…

Inspired by the question from @kiknag ... Who should not use Yarn because of the difference between Yarn and npm?

Everyone should use Yarn

Reply to this…

Why is Yarn called Micro Secure?

Reply to this…

Load more responses