@pnpm/plugin-commands-installation pnpm patch patch pnpm link <pkg> --global should work when a custom target directory is specified with the --dir CLI option #5473.