etherpad-lite: Crash on startup: missing dependencies

Describe the bug When I start etherpad, it claims that all the dependencies are missing, despite the fact that installDeps.sh has just installed them.

To Reproduce Steps to reproduce the behavior:

  1. Install Node.js v15.11.0 & npm 6.14.11
  2. Run src/bin/installDeps.sh, followed by npm install sqlite3
  3. Execute path/to/etherpad/bin/run.sh
  4. See error

Expected behavior Etherpad runs as normal

Screenshots Log files are probably more helpful here.

Server (please complete the following information):

  • Etherpad version: 1.8.12
  • OS: Host OS: Raspberry Pi OS, based on Debian Buster, armv7l - Guest OS inside Docker container: minideb
  • Node.js version (node --version): v15.11.0
  • npm version (npm --version): 6.14.11

Desktop (please complete the following information): NOT relevant, because I can’t get etherpad to start so I can’t access it - but I’m including it for completeness

  • OS: Ubuntu Desktop 20.10
  • Browser Firefox
  • Version 87.0b9 (64-bit)

Smartphone (please complete the following information): Again NOT relevant because I do NOT access etherpad on my smartphone and even if I could I can’t because etherpad won’t start, but I’m including it for completeness.

  • Device: Nokia 7.1
  • OS: Android 10
  • Browser Firefox for Android
  • Version 87.0.0-beta.4 (Build #2015797515)

Additional context Add any other context about the problem here.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Hi, I think I’m getting an issue related to this, but I’m not entirely sure.

If my responses below don’t help, please open a new bug report with full details.

I get errors of missing dependences

Delete /path/to/etherpad-lite/package.json and /path/to/etherpad-lite/package-lock.json (if they exist) and try again.

I’ve manually installed sqlite3

Make sure you install it under src/

cd /path/to/etherpad-lite/src && npm i sqlite3

my node version is 16, npm is 7.23, both installed via nvm. Upon running, e-l reports I am using npm v6.13

That’s a good thing. We intentionally install a copy of npm v6.13 due to compatibility problems with npm v7. That log line indicates that Etherpad has successfully found the version installed as a dependency, and is not using the host’s version.