Skip to content
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

bin/installDeps.sh - failing with unable to find dezalgo error #3302

Closed
ArcticSnowman opened this issue Jan 3, 2018 · 10 comments
Closed

bin/installDeps.sh - failing with unable to find dezalgo error #3302

ArcticSnowman opened this issue Jan 3, 2018 · 10 comments

Comments

@ArcticSnowman
Copy link

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?

@ArcticSnowman
Copy link
Author

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

@ArcticSnowman
Copy link
Author

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

@lpagliari
Copy link
Contributor

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.

@Doemela
Copy link

Doemela commented Jan 4, 2018

@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

@Doemela
Copy link

Doemela commented Jan 4, 2018

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

@fspc
Copy link

fspc commented Jan 18, 2018

@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.

@lpagliari
Copy link
Contributor

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

@fspc
Copy link

fspc commented Jan 18, 2018

@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.

@revolunet
Copy link

to make it work with npm@5.6.0 : remove the src/package-lock.json

@dessalines
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants