Open EMREOYUN opened 4 weeks ago
This is probably because you are running npm from windows and not within WSL. If you type 'which npm' in the cli, it should return a linux directory in the format '/home/[username]/...' and not a windows directory. Install node via nvm in WSL and your electron app will run. Drag&Drop doesn't work though :-(
/pipx/venvs/fabric/lib/python3.11/site-packages/installer/client/gui/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory An error occurred while executing NPM commands: Command '['npm', 'start']' returned non-zero exit status 127.
It still does not work. However, UNC path problem is gone.
it's not WSL related. I'm on linux, in a kali distrobox container and I got:
deck@fabric:/home/deck/Fabric$ fabric --gui Running 'npm install'... This might take a few minutes.
up to date, audited 161 packages in 715ms
26 packages are looking for funding run
npm fund
for detailsfound 0 vulnerabilities 'npm install' completed successfully. Starting the Electron app with 'npm start'...
fabric_electron@1.0.0 start electron .
/home/deck/.dbx/fabric/.local/share/pipx/venvs/fabric/lib/python3.11/site-packages/installer/client/gui/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory An error occurred while executing NPM commands: Command '['npm', 'start']' returned non-zero exit status 127.
libnss3 had not been caught by any dependency and needed to be installed manually.
sudo apt install libnss3
on my debian derived distro. ymmv
What happened?
Install fabric as usual in WSL and try running
fabric --gui
Version check
Relevant log output
Relevant screenshots (optional)
No response