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
matvey3y 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
kamisamaOP3y 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
NotRoman3y ago
Try using sudo
matvey
matvey3y ago
yes, you need sudo to install globally
kamisama
kamisamaOP3y ago
should i uninstall first the one i installed using npm and npx?
matvey
matvey3y ago
no
kamisama
kamisamaOP3y ago
Can i ask why not

Did you find this page helpful?