DEV Community

Discussion on: What is the difference between yarn and npm these days?

Collapse
 
shinesanthosh profile image
Shine Santhosh • Edited

try
yarn add express
and
npm i express
You can see the difference by yourself. Yes, I love it because it's faster but also it's easier to run scripts with yarn. You don't have to
npm run dev
just
yarn dev

I'm lazy; I hate to type another 3 letter wordπŸ˜…

But having different lockfiles can put you in a lot of dependency issues.
So if I clone a project I'll look for the lockfile. And will use yarn and npm depending upon it.

So the thing is, yarn can install stuff faster.

Collapse
 
artis3n profile image
Ari Kalfus

Maybe time for me to go back to yarn, then!