-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Open
Labels
Description
When I run npm start, it shows the following output:
> [email protected] start /tmp/electron-quick-start
> electron .
/tmp/electron-quick-start/node_modules/electron/dist/electron: error while loading shared libraries: libcups.so.2: cannot open shared object file: No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] start: `electron .`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2021-05-20T16_43_01_585Z-debug.log
As 4th line says, there is no libcups shared library. I tried installing it, but there are new missing shared libraries. I don't use systemd and it may be one of the reasons of bug.
After hours of troubleshooting, I solved it by putting .so libraries from Debian 10 image into the dist directory. You can download them from the attachment (for testing purposes).