Are you an LLM? You can read better optimized documentation at /fe/pnpm/install.md for this page in Markdown format
pnpm 安装 快速管理 Node.js 包
安装
bash
iwr https://get.pnpm.io/install.ps1 -useb | iex
bash
npm install -g pnpm
bash
brew install pnpm
更新
bash
pnpm up //更新所有依赖项
pnpm upgrade 包 //更新包
pnpm upgrade 包 --global //更新全局包
设置存储路径
bash
pnpm config set store-dir /path/to/.pnpm-store