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
Budding web developer with a passion for creating intuitive and visually appealing websites using open source technologies. Always learning new open source frameworks and tools.
@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.
I enjoy keeping up on all of the changes in technology, especially on the web front. My passion is for developing web-based applications and backend services to help businesses get more done.
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
@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.
It's probably because you were using npm wrong. If you want consistency in the versions installed you need to use
npm ciand notnpm install.