DEV Community

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

Collapse
 
renzhamin profile image
renzhamin

npm's dependency resolution is inferior compared to yarn. I was working in a react project, after installing some packages, it suddenly became irreproducible on other devices, npm install or npm clean-install just wouldn't work. Tried out yarn and it worked out just fine

Collapse
 
raxraj profile image
Ashutosh Kumar

@renzhamin This happened multiple times with me as well. when it comes to using private GitHub Repo based packages. It's resolution is too slow and often fails on different platforms.

Collapse
 
tnolte profile image
Tim Nolte

It's probably because you were using npm wrong. If you want consistency in the versions installed you need to use npm ci and not npm install.