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
Matvey15mo 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
kamisamaOP15mo 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
NotRoman15mo ago
Try using sudo
Matvey
Matvey15mo ago
yes, you need sudo to install globally
kamisama
kamisamaOP15mo ago
should i uninstall first the one i installed using npm and npx?
Matvey
Matvey15mo ago
no
kamisama
kamisamaOP15mo ago
Can i ask why not
Want results from more Discord servers?
Add your server