smileyby / notes

GitHub Issues Blog, powered by GitHub Issues and GitHub Actions
2 stars 0 forks source link

pnpm 升级失败 #259

Open smileyby opened 1 year ago

smileyby commented 1 year ago

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 add pnpm -g