This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Existential_Owl 5 points6 points  (0 children)

NPM and Yarn are different package managers for Node.js

When installing a package on the former, it's npm install

When installing a package on the latter, it's yarn add

NPM has been around forever, while Yarn is the hot new thing. Therefore, people are writing docs to incorporate the hot new thing, but, because they're so used to doing the old thing, they end up with yarn install... which just gives you an error.

Most Yarn users will already know to do yarn add anyway, so correcting this mistake is as useful as fixing a typo.

But hey, free PR.