mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
452 B
452 B
Globally Install A Package With Yarn
I'm used to using the -g flag with npm to install packages globally.
$ npm install -g create-react-app
But how do I achieve the same thing with yarn?
By using the global command prefix, I can do a number of yarn tasks
globally, including adding a package.
$ yarn global add create-react-app