Yarn 2+ has removed its yarn global
functionality completely, and you are stuck with yarn dlx
. You can find this in their migration docs here: https://yarnpkg.com/migration/guide#use-yarn-dlx-instead-of-yarn-global
See also this GitHub issue: https://github.com/yarnpkg/yarn/issues/7884