Here’s a cheat sheet you can use as a handy reference for npm & Yarn.
On the flip-side, their similarities can lead to confusion and silly mistakes if you find yourself using both package managers. Hopefully this cheat sheet will serve as a handy reference! 🐊
npm vs Yarn
|Install dev package|
|Uninstall dev package|
|Global install package|
|Global uninstall package|
— Sorry to interrupt this program! 📺
If you're interested in learning Node in a comprehensive and structured way, I highly recommend you try Wes Bos' Learn Node course. Learning from a premium course like that is a serious investment in yourself.
Plus, this is an affiliate link, so if you purchase the course you help Alligator.io continue to exist at the same time! 🙏
Things that Haven’t Changed
There are some commands that Yarn decided not to change. Here’s a quick breakdown: