Node.js pnpm 包管理器版本升级

pnpm Node.js About 692 words

升级 pnpm

提示更新

   ╭──────────────────────────────────────────╮
   │                                          │
   │   Update available! 10.32.1 → 10.33.0.   │
   │   Changelog: https://pnpm.io/v/10.33.0   │
   │     To update, run: pnpm add -g pnpm     │
   │                                          │
   ╰──────────────────────────────────────────╯

升级命令

pnpm add -g pnpm

可能出现错误,使用pnpm setup命令添加全局路径。

PS C:\Users\me\Desktop> pnpm add -g pnpm
 ERR_PNPM_NO_GLOBAL_BIN_DIR  Unable to find the global bin directory

Run "pnpm setup" to create it automatically, or set the global-bin-dir setting, or the PNPM_HOME env variable. The global bin directory should be in the PATH.

使用

pnpm self-update
Views: 9 · Posted: 2026-06-03

———         Thanks for Reading         ———

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓
Prev Post
Today In History
Browsing Refresh