electron-quick-start
electron-quick-start copied to clipboard
Missing shared libraries
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).
I've never used linxsis
Sorry I'm pooped out.
im using wsl 2 on windows 11, and im getting the same error. #519 point to this issue. So im kinda stuck in the loop, any ideas?
The error:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: electron .
npm ERR! Exit status 1
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/fullpl4nch3/.npm/_logs/2022-01-24T12_57_29_222Z-debug.log
steps to reproduce: npm install && npm start
@qbitroot @fullpl4nch3 if use wsl, please try
rm -rdf node_modules
npm install --platform=win32
to tell dependenies your are running on a win system. this resolved my problem.
Unfortunately the above command from @genru didn't work for me. Trying to run the overmind dev tools via npx and am running into this same error. Any help greatly appreciated, thank you in advance
Could you try with sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
, that worked for me
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
Thanks @tammaroivan , you legend!
Having this issue today in Selenium IDE and I solved it by installing google-chrome in ubuntu on Windows WSL and using vcxsrv as Windows X Server with export DISPLAY ... in .bashrc ... (of course it also worked for this quick start then)
Could you try with
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
, that worked for me
This worked!!!
Could you try with
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
, that worked for me
I love you
Ok, better to unsubscribe this thread
Could you try with
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
, that worked for me
awesome
Could you try with
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
, that worked for me
Thanks, worked for me bro!
I ran the same command
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
and got this error:
error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
what else could I try?
I ran the same command
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
and got this error:error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
what else could I try?
Try install the apel release packages before run.
I ran the same command
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
and got this error:error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
what else could I try?
sudo apt-get install libasound2
this works for me
There is this closed issue about documenting runtime (as opposed to build time) dependencies for Electron: https://github.com/electron/electron/issues/26673
Thank you so much @tammaroivan 💯
Could you try with
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
, that worked for me
thanks ! that works