Etherpad-lite: bin/installDeps.sh - failing with unable to find `dezalgo` error

Created on 3 Jan 2018  ·  10Comments  ·  Source: ether/etherpad-lite

Using the latest 1.6.2, get the following error when trying to start up. It seems to come from the installDeps.sh

[root@2274172dfbae etherpad]# bin/installDeps.sh
Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
npm ERR! path /opt/etherpad/src/node_modules/npm/node_modules/dezalgo
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/opt/etherpad/src/node_modules/npm/node_modules/dezalgo' -> '/opt/etherpad/src/node_modules/npm/node_modules/.dezalgo.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-01-03T17_44_19_081Z-debug.log

Versions:

[root@2274172dfbae etherpad]# npm -v
5.6.0
[root@2274172dfbae etherpad]# node -v
v4.8.7

Any ideas?

Most helpful comment

to make it work with [email protected] : remove the src/package-lock.json

All 10 comments

Maybe there's a problem in using npm 5.x with etherpad.

npm 4.0.2 works .. so maybe this needs to be a request to update the dependencies again or add a warning in the docs about npm 5.x

I got some dependencies errors in the past (not with dezalgo though), so sometimes what worked for me was to install dependencies without sym links. Not ideal, but works:

npm cache clean
cd src
npm install --no-bin-links

If you get an error Maximum call stack size exceeded, run npm install --no-bin-links again.

@lpagliari Did not work "delzago" error still there and prevent etherpad to run
npm version: 5.6.0
node version: 8.9.4
Debian 9

I removed all package-lock.json files and run bin/installDeps.sh with success

@lpagliari I am wondering whether a better solution would be to modify bin/installDeps.sh to use yarn rather than npm? An earlier version of npm (5.5.1) was working without a glitch, that isn't the case with 5.6.0. I shall experiment with it, and tell you my results.

@fspc Looks good to me. Let us know if it worked for you.

@lpagliari Yes, that does the trick. I will send a pull request that alters installDeps.sh so that if npm >= 5.6.0, yarn will be used, instead.

to make it work with [email protected] : remove the src/package-lock.json

Just running bin/run.sh twice in a row fails with current etherpad.

Was this page helpful?
0 / 5 - 0 ratings