DEV Community

Discussion on: npm v/s yarn v/s pnpm

Collapse
 
dannystyleart profile image
Dániel Sebestyén

I have to admit Yarn has good features.

Regarding lockfiles, all 3 supports the feature.
It is often overlooked like your example of the 'no more reproducible state of installation', npm can install the same state using the ci command, and pnpm by providing the --frozen-lockfile option to install command.

It's an other discussion that Yarn behaves like this by default.

Also regarding the offline mode, each can cache the downloaded packages, tough sure they handle them with different approach.

One key differentiator that I'm missing here tough is the workspaces feature. For that I'm sure Yarn has a solid lead and in fact most of the points the author made here are serving this feature.

Collapse
 
raxraj profile image
Ashutosh Kumar

@dannystyleart Great points!!