Global installs run by name, and pnpm and yarn are ready
In a new sandbox, npm install -g failed without sudo, and with it, or with bun add -g, the command installed but was not found. Now all three put their commands on PATH, so npm install -g @anthropic-ai/claude-code gives you claude straight away, and pnpm and yarn work through Corepack. See the sandbox environment.