can anyone help me to install pnpm on debian

im using debian bookwork and bot npm and npx install result in error. can anyone help me
7 Replies
Matvey
Matvey16mo ago
try automatic script
curl -fsSL https://get.pnpm.io/install.sh | sh -
curl -fsSL https://get.pnpm.io/install.sh | sh -
also, what error are you getting?
kamisama
kamisamaOP16mo ago
ERR_PNPM_NO_GLOBAL_BIN_DIR Unable to find the global bin directory when installed using npx error: EACCES: permission denied, mkdir '/usr/lib/node_modules/pnpm' when using npm @ronanru
NotRoman
NotRoman16mo ago
Try using sudo
Matvey
Matvey16mo ago
yes, you need sudo to install globally
kamisama
kamisamaOP16mo ago
should i uninstall first the one i installed using npm and npx?
Matvey
Matvey16mo ago
no
kamisama
kamisamaOP16mo ago
Can i ask why not
Want results from more Discord servers?
Add your server