-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"run.sh" fails to install pnpm when not running as root #6822
Comments
Hey. There is also some extra possibilities how to install pnpm https://pnpm.io/installation . You could use corepack for this. |
Is there a way to use I am not a nodejs/npm user myself so it's quite hard to figure this out based on just the etherpad docs. |
it is probably sufficient if you add pnpm in your user folder. Or when Etherpad is installed locally just go to the install folder and do npm i pnpm which will install pnpm in Etherpad only. |
I tried adding this to the service file
That fails with a completely inscrutable error message:
Searching for this online brings many mentions of docker/podman, and suggests to use |
Ah, I missed the "go to the install folder"... I don't know why
If I understand this correctly, the fix here is to use pnpm instead of npm, but this occurs while trying to install pnpm... classic dependency loop.^^ |
Describe the bug
I am trying to update to etherpad 2.2.7 (current version is 1.9.7). Running
run.sh
fails with a permission error:I suspect this is
npm install pnpm -g
failing. Apparently it tries to write to/usr
. Therun.sh
script itself bails out when running as root, so it seems like the logic ininstallDeps.sh
that installspnpm
doesn't seem to make a lot of sense?To Reproduce
Steps to reproduce the behavior:
run.sh
on a system without pnpm installed.Expected behavior
Etherpad should start up successfully.
Server (please complete the following information):
node --version
): v18.19.0npm --version
): 9.2.0Additional context
I will definitely not run
npm
as root, so I am currently unsure how I could installpnpm
. Somehow it should be installed only for the user that runs etherpad.The text was updated successfully, but these errors were encountered: