Skip to main content

安装

pnpr 作为 @pnpm/pnpr 分发在 npm 上。 npm 封装器需要 Node.js 18 或更高版本。全局安装它:

🌐 pnpr is distributed on npm as @pnpm/pnpr. The npm wrapper requires Node.js 18 or newer. Install it globally:

pnpm add -g @pnpm/pnpr

该封装器包解析为在 @pnpm/pnpr.<platform>-<arch> 下发布的本地二进制文件(例如 @pnpm/pnpr.linux-x64)。预编译二进制文件可用于:

  • linux-x64, linux-arm64

  • linux-x64-musl, linux-arm64-musl

  • darwin-x64, darwin-arm64

  • win32-x64, win32-arm64

只有与你的平台匹配的二进制文件会被下载。

🌐 Only the binary matching your platform is downloaded.

验证安装

🌐 Verify the installation

pnpr --version

下一步

🌐 Next steps

继续前往 快速开始 来运行服务器并指向客户端。

🌐 Continue to the Quick start to run the server and point a client at it.