본문으로 건너뛰기
버전: 11 & 12

pnpm setup

이 명령은 pnpm의 독립 실행형 설치 스크립트에서 사용됩니다. For instance, in https://get.pnpm.io/install.sh.

setup은 다음 조치를 수행합니다.

  • pnpm CLI에 대한 홈 디렉토리를 생성합니다.
  • adds the pnpm home directory to the PATH by updating the shell configuration file
  • pnpm 실행 파일을 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.

tip

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.