The reason you see that is because you're running it in an interactive shell.
Try this
npx -y pnpm install --silent
This pre-confirms the question.