8000 Has electron worked for anyone using raspberry pi 3 b and the raspbian stretch · Issue #10468 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Has electron worked for anyone using raspberry pi 3 b and the raspbian stretch #10468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wscotgrey opened this issue Sep 7, 2017 · 32 comments
Closed

Comments

@wscotgrey
Copy link

I have a new install of Raspbian, not Jessie but Stretch, and using node 8.4.0 and npm 5.3.0.

Tried the electron-quick-start to no avail.

first had to force the npm install with --save-sev --save-exact. This version installed locally with 1.6.13, so I don't know if it conflicted with the install I did (also forced with npm install -g electron --unsafe-perm=true --allow-root which installed latest (1.7.6). No install would work without forcing.

So electron installed, but when I npm start, I get

`

electron-quick-start@1.0.0 start /home/pi/electron-quick-start
electron .

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron-quick-start@1.0.0 start: 'electron .'
npm ERR! Exit status 1
npm ERR!

npm ERR! Failed at the electron-quick-start@1.0.0 start script` ...

You all get it.

So I've found a lot of fixes for Jessie, but none for Stretch, and the electron readme even says they take about a month to catch up to all of the updating, so is that what I'm waiting for? Is there a stable release somewhere I'm missing?

I've been back and forth on this, plus another app that uses electron.js (MagicMirror^2) and I'm getting discouraged, so if there are fellow travelers who've solved this particular puzzle, and can explain what I'm missing, I'd appreciate it.

Thanks for your time

@kounelios13
Copy link

have you tried fixing npm permissions?

@wscotgrey
Copy link
Author

Okay, found my problem, sorry for the delayed reply, btw (work), but still don't know how to fix it.

I can launch electron from the desktop shell, but not from outside of the desktop. I am not sure what causes this, but I got it working in the shell, but am stymied on the PI when I ctrl+alt+F3 out and use the command line.
Hope someone has answers for that. Thanks again for all of you wizards' help!

@wscotgrey
Copy link
Author
wscotgrey commented Sep 23, 2017 via email

@JoshuaKimsey
Copy link

I seem to be suffering from a similar issue. On my Pi3, I can launch Electron version 1.6.15, but it seems anything above that doesn't work. I used the prebuilt binaries, as the app I'm making is supposed to be an all-in-one idea. I have no clue if actually installing Electron 1.6.15 actually works on the Pi, but I can confirm the prebuilt binary will run. I do hope a work around is found soon, as I'd like to be able to run my app in a more updated environment.

@KellyLSB
Copy link
KellyLSB commented Oct 27, 2017 via email

@JoshuaKimsey
Copy link

@KellyLSB Ah! Yeah, that does make sense. It makes more sense because the only two superiorly popular distros for the Pi are Raspbian, a Debian remix made specifically for the Pi, and Ubuntu MATE, which though a good distro it already puts a strain on the Pi. Hopefully, with the newest release of Debian 9 and Raspbian 'Stretch', a port of the newer versions of Electron will be made for the Pi soon.

@KellyLSB
Copy link
KellyLSB commented Oct 29, 2017 via email

@bgsuello
Copy link
bgsuello commented Nov 4, 2017

i got it working by building the app on another machine and disable hardware acceleration.

OS Node Electron
Raspbian Stretch 8.9.0 1.7.9

@JoshuaKimsey
Copy link

@KellyLSB Raspbian technically is Debian I think, or at least it shares the same relation Ubuntu does. So if a version is made to work for Debian, it should work for the Pi to.

@bgsuello That's fantastic news! Thanks for sharing that!

@wscotgrey
Copy link
Author
wscotgrey commented Nov 5, 2017 via email

@MarshallOfSound
Copy link
Member

I was trying to get it to launch without a desktop.

This isn't possible (and doesn't make much sense). If you want to run Electron without any form of GUI then it's basically just node.js. If you want to run Electron headlessly you'll need something like xvfb running 👍

@JoshuaKimsey
Copy link

Glad to know at least that it is working on the newest releases!

@codebytere
Copy link
Member

Seems like some resolution has been reached here, so i'm going to go ahead and close this.

@schrockwell
Copy link

@bgsuello Oh my god, downgrading from electron v1.8.2 to v1.7.9 made all the difference! Thank you!

@darshan94
Copy link

@schrockwell Hi, how you downgraded them ?

@bgsuello
Copy link
bgsuello commented Mar 8, 2018

try npm install electron@1.7.9

@borismus
Copy link

Umm... so @1.8.2 and @1.8.3 are both broken on RPi 3. Downgrading to @1.7.9 worked for me too. Please reopen and fix.

@jkleinsc
Copy link
Member

@borismus what OS are you using on the RPi 3 and is it 32-bit or 64-bit?

@borismus
Copy link

AFAICT all official RPi3 OS are 32-bit: https://raspberrypi.stackexchange.com/questions/69562/is-current-raspbian-pi-3-b-32-or-64-bits-os.

Mine seems to be too: Linux raspberrypi 4.9.35-v7+ #1014 SMP armv7l

@jkleinsc
Copy link
Member

@borismus I was able to verify the issue on both a RPi 3 and a RPi 2.
I tested 1.8.2, 1.8.3 and the newly released 1.8.4 and the issue is present in all three; however 2.0.0-beta.4 works correctly.
I am going to open a new issue to specifically track the issue in 1.8.x

@borismus
Copy link
borismus commented Mar 16, 2018 via email

@jkleinsc
Copy link
Member

1.8.x issue here: #12329

8000

@readonemohamed
Copy link

OS: Stretch
Node: 9.8.0
electron: 1.6.11

Works well so far.

@brubbel
Copy link
brubbel commented Apr 2, 2018

Same issue here.
RPI3B @ Raspbian GNU/Linux 9 (stretch)
Node v8.11.1
electron 1.8.4
Headless (xvfb), window.webContents emits a crash event at window.loadURL(...)
(It worked fine with electron 1.6.11)

@TsPuujee
Copy link

yarn add electron-packager
add to package.json
scripts": {
"dist": electron-packager ./ MyApp --platform=linux --arch=armv7l
}
yarn dist

@adamplabarge
Copy link

If it is any help - I got electron to build correctly using
Node.js 12.0.0, Chromium 72.0.3626.52, and Electron 5.0.0-beta.2.
On Rasbian Stretch after updating everything via apt updates.

Previous versions of electron i tried were 1.7.9, 4.0.4, and they were having issues with the libc versions.

Might not be the exact answer to this question but might help others in getting electron to run the quick start.

@rdzidziguri
Copy link

@adamplabarge any advice on how to run app build using electron-package on rasbian-strech-lite from SSH and let me clarify i only have xserver-xorg xserver-xorg-video-fbdev xinit installed think nothing else is needed to run the app. I have no node or electron on raspberry side and i think it should not be required after packing app so any advice would be helpful.

@adamplabarge
Copy link

@rdzidziguri unfortunately no. i found developing and building on the Raspberry itself to be very slow and would often blow up. I decided to just develop/build on a desktop.

@rdzidziguri
Copy link

@adamplabarge sorry for the late response, but what I mean is that i build and develop on my windows box and would like to run on raspbian-stretch-lite but only have xorg and xinit packages.

@adamplabarge
Copy link

@rdzidziguri - I was able to get this built and running - though I'm developing from Ubuntu.
https://github.com/adamplabarge/lastbrewtime

@rdzidziguri
Copy link

@adamplabarge Sounds great but were u able to run it on raspbian-lite with only xserver xinit installed? I would be very thankful if you could share your experience and steps to follow.

@iot-dev01
Copy link
iot-dev01 commented Jun 14, 2019

@rdzidziguri - I was able to get this built and running - though I'm developing from Ubuntu.
https://github.com/adamplabarge/lastbrewtime

Thanks a lot @adamplabarge we add following line to our package.json and get it running

"linux": { "target": { "target": "deb", "arch": "armv7l" }, "category": "Development" }, "deb": { "fpm": [ "--architecture", "armhf" ] }

@adamplabarge Sounds great but were u able to run it on raspbian-lite with only xserver xinit installed? I would be very thankful if you could share your experience and steps to follow.

I try to make the app run on a raspbian lite in kioskmode.
Installing lightdm and it works perfectly as expected.
Unfortunately xserver xinit only not work on my environment for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0