Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I help pnpm find its global directory?

Tags:

pnpm

I've got a clean install of pnpm v8.8.0 on Windows 11. When I try to intall a global package I get:

ERR_PNPM_NO_GLOBAL_BIN_DIR  Unable to find the global bin directory

I've tried pnpm setup --force. Nothing changes. I've looked at the pnpm install instructions, nothing. How can I start using pnpm?

like image 222
bbsimonbb Avatar asked Sep 13 '25 04:09

bbsimonbb


1 Answers

I got this error when trying to update pnpm. For me, the issue was that I had installed pnpm with npm, which caused global directories to not be set up properly.

If you installed pnpm with npm, you also need to update with npm.

To update pnpm: npm i -g pnpm

like image 143
FluffyBike Avatar answered Sep 17 '25 21:09

FluffyBike