Skip to main content
Version: 9.x

pnpm setup

该命令由 pnpm 的独立安装脚本使用。例如,[https://get.pnpm.io/install.sh]https://get.pnpm.io/install.sh 年。

¥This command is used by the standalone installation scripts of pnpm. For instance, in https://get.pnpm.io/install.sh.

安装程序执行以下操作:

¥Setup does the following actions:

  • 为 pnpm CLI 创建主目录

    ¥creates a home directory for the pnpm CLI

  • 通过更新 shell 配置文件将 pnpm 主目录添加到 PATH

    ¥adds the pnpm home directory to the PATH by updating the shell configuration file

  • 将 pnpm 可执行文件复制到 pnpm 主目录

    ¥copies the pnpm executable to the pnpm home directory