pnpm up --latest
pnpm install -g pnpm or pnpm add -g pnpm
# If pnpm used via corepack: corepack prepare pnpm@latest --activate