npm commands should be run as the root user. No files
in the workspace should be owned by root. If you ran some commands as
root, and are now having problems, then it's probably because there
are now files owned by root in your workspace. You should create a new
workspace as a non-root user.
Additionally, we recommend that you create a specific user to run Bibliogram with, so that in the unlikely event of a serious security flaw, an attacker cannot access or modify files owned by other users on the machine.
See if anything in this thread helps: https://github.com/lovell/sharp/issues/1087#issuecomment-359582561
If you're using a Raspberry Pi, see
/docs/Guide: Sharp on Raspberry Pi.md
The problem: You might encounter this if you're hosting on a Raspberry
Pi. Bibliogram will work fine, but every time you reboot the host, you
see error 502. Reloading nginx with
sudo service nginx reload only
temporarily solves the problem until the next reboot.
/etc/nginx/sites-enabled/with your text editor of choice. If you followed the installation instructions, you named this file
proxy_pass http://localhost:10407;near the bottom and replace