loading...
Cover image for Yarn global package install location

Yarn global package install location

c33s profile image Julian ・1 min read

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

Posted on by:

c33s profile

Julian

@c33s

see https://dev.to/c33s/comment/3eck

Discussion

markdown guide
 

Note that you can use yarn global bin to output the path to that bin folder just in case you can't find it. :)