安装
先决条件
¥Prerequisites
如果你不使用独立脚本或 @pnpm/exe
来安装 pnpm,则需要在系统上安装 Node.js(至少 v18.12)。
¥If you don't use the standalone script or @pnpm/exe
to install pnpm, then you need to have Node.js (at least v18.12) to be installed on your system.
使用独立脚本
¥Using a standalone script
即使你没有安装 Node.js,也可以使用以下脚本来安装 pnpm。
¥You may install pnpm even if you don't have Node.js installed, using the following scripts.
在 Windows 上
¥On Windows
警告
使用 PowerShell:
¥Using PowerShell:
$env:PNPM_VERSION = "9.15.5"; Invoke-WebRequest https://get.pnpm.io/install.ps1 -UseBasicParsing | Invoke-Expression