pnpm: ERROR No write access to the found global executable directories
i’m getting the ERROR No write access to the found global executable directories when running curl -f https://get.pnpm.io/v6.js | node - add --global pnpm in wsl2 node 14. Debian 10
maybe this helps
❯ ll /usr/bin/node*
-rwxr-xr-x 1 root root 73873984 Feb 23 02:00 /usr/bin/node
lrwxrwxrwx 1 root root 24 Sep 25 2020 /usr/bin/nodejs -> /etc/alternatives/nodejs
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 13
- Comments: 30 (7 by maintainers)
Commits related to this issue
- ci(pnpm): install `pnpm` separately from dependencies The previous build hit the error from this: https://github.com/pnpm/pnpm/issues/3319 — committed to decaffeinate/decaffeinate-parser by eventualbuddha 2 years ago
When trying to install
pnpmon the CircleCI CI/CD pipeline with the installation script:I get the following error:
Did anyone encounter this issues and found a solution already? Thanks
In case it helps anyone, what happened for us was that CircleCI most likely change the path to bash. We updated the command to pick it up automatically and set it to
SHELLenv var like this:Does the standalone script work?
You should restart the terminal after running it.
v7有问题,安装包404 v6好用,怎么各种不兼容,这种东西开发出来有啥意义,糟心的很
@zkochan As mentioned by @biro456, when installing pnpm on CI, use the following command:
run
pnpm add -g pkg, the following error will be encountered(the ~/.local/share/pnpm file has been created manually):Use the
npm install -g pnpm@7command to install, which solves this issue.I install pnpm in my devcontainer with dockerfile, It happens and my solution is beyond, maybe helpful for you. The Key I think is USER and ENV, standlone script should be same
You can try to install pnpm using the standalone script https://pnpm.io/installation
Why not try
corepack?I was able to install pnpm on CircleCI this way.
I’m trying to install PNPM in a Docker image with this (redacted) Dockerfile:
It fails with:
Building without
USER node:nodeworks, so the question is why is it failing to install when not running asroot.This should work in v7
I am having the same issue on m1. Any workarounds?
This also happens for me: