mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Startup exception on raspberry pi #145
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @80er on GitHub (Apr 15, 2018).
Originally assigned to: @GregorBiswanger on GitHub.
Hi,
followed the sample and created an empty ASP.NET Core project. Building the app on my Win10 machine works fine.
When i generate the package for my Raspberry PI with the command
dotnet electronize build /target linux /electron-arch armv7li get the exception below. Electron 1.7.11 is installed on the raspi, node is 8.11.1 (as on my Win10 machine). Already tried an npm install in the resources/app directory on the raspi.
Uncaught Exception:
Error: spawn EACCES
at exports._errnoException (util.js:1050:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:390:9)
at portfinder (/home/pi/MediaCenterFrontend/resources/app/main.js:52:22)
at listen (/home/pi/MediaCenterFrontend/resources/app/node_modules/detect-port/lib/detect-port.js:69:11)
at Server.server.listen (/home/pi/MediaCenterFrontend/resources/app/node_modules/detect-port/lib/detect-port.js:93:12)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:86:13)
at Server.emit (events.js:188:7)
at emitListeningNT (net.js:1290:10)
@GregorBiswanger commented on GitHub (Apr 16, 2018):
EACCESmeans most probably that current user has no rights to execute the electron file.I hope my answer helps you.
@80er commented on GitHub (Apr 18, 2018):
Just to make this complete. What i missed is that also used node modules can contain executables (like detect-port). these have to be runable to of course. ;)