At the time of Yarn’s debut, it brought big advancements to npm’s performance and workflow along with the introduction of lock files. A lot of time has passed since then and with the arrival of a native npm lock file, I was under the impression that more recent npm development had rendered the benefits of Yarn obsolete.
The way we often use Gulp can make our projects brittle and add friction that complicates contribution and on-boarding. Thankfully, this is an avoidable problem with a rock-solid solution that requires minimal effort.
Despite all advice to the contrary, there are valid use cases for running npm via sudo. We encountered just such a case in our own work, and with it some challenges that made us scratch our heads and dive into man pages.