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 | iexbash
npm install -g pnpmbash
brew install pnpm更新
bash
pnpm up //更新所有依赖项
pnpm upgrade 包 //更新包
pnpm upgrade 包 --global //更新全局包设置存储路径
bash
pnpm config set store-dir /path/to/.pnpm-store