Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 452 Bytes

globally-install-a-package-with-yarn.md

File metadata and controls

18 lines (12 loc) · 452 Bytes

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

source