I'm used to using the -g flag with npm to install packages globally.
-g
npm
$ npm install -g create-react-app
But how do I achieve the same thing with yarnarrow-up-right?
yarn
By using the global command prefix, I can do a number of yarn tasks globally, including adding a package.
global
$ yarn global add create-react-app
sourcearrow-up-right
Last updated 4 years ago