Error when starting server with 'socketio:expressCreateServer' and 'webaccess:expressConfigure'
Hi,
i am working with different instances of etherpad-lite on my local machine (OS X 10.13.6) and on some of them i am getting the following error when starting the server form the etherpad-lite directory with bin/run.sh:
[2020-03-25 12:27:00.079] [INFO] console - [2020-03-25 12:27:00.079] [ERROR] console - Failed to load '/Users/path/to/etherpad-lite/node_modules/ep_etherpad-lite/node/hooks/express/socketio:expressCreateServer' for 'ep_etherpad-lite/socketio/hooks/expressCreateServer': TypeError: Cannot read property 'forEach' of null
[2020-03-25 12:27:00.084] [INFO] console - [2020-03-25 12:27:00.084] [ERROR] console - Failed to load '/Users/path/to/etherpad-lite/node_modules/ep_etherpad-lite/node/hooks/express/webaccess:expressConfigure' for 'ep_etherpad-lite/webaccess/hooks/expressConfigure': TypeError: Cannot read property 'forEach' of null
I am installing etherpad-lite manually using git as described in the README.md with…
git clone --branch master https://github.com/ether/etherpad-lite.git && cd etherpad-lite && bin/run.sh
… and the errors, when starting the server, occur on fresh installations in some directories but not in others. I could not make out a common pattern in the path that would make it work or not. Sometimes the errors started to occur after adding a plugin.
For erroneous installations i already tried, un-/reinstalling nodejs, rm -rf node_modules, rm -rf src/node_modules && npm install, all of those did not solve the problem.
I guess this must be related to my system. Would anybody know what might cause these errors?
System: • OS X 10.13.6 • Node v12.16.1 (using NVM) • etherpad-lite (from master branch, last version 1.8.0)
Thanks
Something seems to be missing. I installed express and express-session by npm. I don't know if that helps.
Try sudo -E bin/run.sh