DEV Community

Discussion on: You don't need --save anymore for NPM installs

Collapse
 
mohdahmad1 profile image
Mohd Ahmad • Edited

use yarn instead

Collapse
 
jezmck profile image
Jez McKean

At least give some reasons why!

Collapse
 
mohdahmad1 profile image
Mohd Ahmad

its fast, easy and easy to remember commands

Thread Thread
 
jezmck profile image
Jez McKean

How is it different (better?) to yarn and npm?

Collapse
 
727021 profile image
Andrew Schimelpfening

What reasons are there for using yarn instead, other than preference? Are there pros/cons of both? Yarn uses the NPM registry for packages, doesn’t it?

Collapse
 
dailydevtips1 profile image
Chris Bongers

I think it's a personal preference, yarn did have some issues some years ago where their registry was down all the time, so decided to stick to NPM myself.

Thread Thread
 
mohdahmad1 profile image
Mohd Ahmad

yes, absolutely

Collapse
 
benpai profile image
Benji Grant • Edited

Yarn has emojis, therefore it's better πŸ’β€β™€οΈ

On a more serious note though, it's mostly personal preference, and I really love that I can just run yarn and will install my packages, and it's output is a lot cleaner and easier to read than what npm produces.

Collapse
 
ptejada profile image
Pablo Tejada

I prefer yarn myself. Less verbose and more concise API in my opinion.

Collapse
 
mohdahmad1 profile image
Mohd Ahmad

it caches packages, so it is fast