Pular para o conteúdo principal
Versão: 11 & 12

pnpm setup

Este comando é utilizado pelos scripts de instalação independentes do pnpm. For instance, in https://get.pnpm.io/install.sh.

Realiza as seguintes ações:

  • cria um diretório inicial para a CLI do pnpm
  • adds the pnpm home directory to the PATH by updating the shell configuration file
  • copia o executável do pnpm para o diretório inicial do pnpm

Since v11.18.0, when running on GitHub Actions, pnpm setup also appends PNPM_HOME and the global bin directory to the GitHub Actions environment files (GITHUB_ENV and GITHUB_PATH), so later steps in the same job can run pnpm add --global and other global commands.

dica

After upgrading to pnpm v11, run pnpm setup to update your shell configuration. In v11, globally installed binaries are stored in a bin subdirectory of PNPM_HOME.