yarn add globaly npm code example Example: yarn add global yarn global <add/bin/list/remove/upgrade> [--prefix]