Commands
Install a package globally
yarn global add ladon
npm install -g ladon
update a package
npm update ladon --global
yarn global upgrade ladon
Yarn global install locations
- Windows
%LOCALAPPDATA%\Yarn\config\global
for example:C:\Users\username\AppData\Local\Yarn\config\global
- OSX and non-root Linux
~/.config/yarn/global
- Linux if logged in as root
/usr/local/share/.config/yarn/global
also don't forget to add the yarn bin folder to your path:
for example:
C:\Users\username\AppData\Local\Yarn\bin
Links
- https://github.com/yarnpkg/yarn/issues/2049
- https://yarnpkg.com/en/docs/cli/global
- cover image by susannp4 / Susann Mielke https://pixabay.com/en/cat-young-animal-curious-wildcat-2083492/
Top comments (4)
Note that you can use
yarn global bin
to output the path to that bin folder just in case you can't find it. :)I think the path for Windows moved, it's
%LOCALAPPDATA%\Yarn\bin
nowAnd
yarn global dir
provides you with the directory, in which node packges reside.%LOCALAPPDATA%\Yarn\bin
is empty. Where can I find binaries to use it in WebStorm?