yarn 2 install global package code example Example: how to add packages globally in yarn yarn global <add/bin/list/remove/upgrade> [--prefix]