TL DR: yarn global ls
Longer answer: Use yarn global for any global related task. Consider the yarn global command as a whole, and not in terms of yarn + the global suffix, as with npm + -g .
list does not work with yarn global (although it works with yarn locally). Use the short version of ls instead. yarn global has no concept of depth (although --depth=0 works for yarn locally).
More on yarn global : https://yarnpkg.com/en/docs/cli/global
source share