Read the statement by Michael Teeuw here.
Clean installation... fails left and right
-
@devinhedge said in Clean installation... fails left and right:
Not to be snarky… really… I’m concerned that MagicMirror isn’t being maintained. During installation there are a lot of deprecated node.js module warnings, and security warnings…
As others have said, most of your problems are because you use Raspbian Lite.
That being said: you have a point. The auto installer script isn’t maintained as well as I want it to be. Due to the fast development speed of Raspbian, it runs into issues. Since most of the contributors don’t install the core from scratch very often, we don’t run into these issues.
I’m considering deprecating the automatic installer and suggesting to manual install Node, clone MagicMirror and then run
npm install
. To be fair: that’s how I install my MagicMirror.Of course, PR’s to fix the auto-installer are more than welcome!
-
Yep I tried lite on my Pi 3B+ but it doesn’t work, Stretch desktop works, but think I had to go for the full package ie all the bloat ware, I’ve uninstalled all the rubbish now, but it’s not really an issue for me as I’m running my Pi off of an SSD so no sd card size limit/price, PS I think from what I remember I had to do a manual install and then install PM2 as it didn’t boot MM after reboot
-
I’m seeing issues with the newest “Raspbian Stretch with desktop image” (Nov 2018–non-bloatware) as well – I did a fresh, manual installation, no errors, but electron will not start with the OpenGL driver (full KMS or fake KMS) enabled. It runs through everything fine on
npm start
but then just stalls at “Launching application.” If I disable OpenGL, it works fine.Tested at Tag v2.6.0 and on the develop branch (2.7.0-dev), same issues.
EDIT: Definitely an issue with electron: adding
app.disableHardwareAcceleration();
injs/electron.js
makes it open fine.EDIT 2: Opened an issue for this #1500, looks like Electron v3.0.13 works.
-
@shbatm @dazza120 @MichMich @bhepler @Mykle1
Okay… I think I’ve figured it out. It isn’t good news:
I’ve brought this up on another thread, but I’ll mention here so that it is captured in context: for the last couple months Node.js and npm are currently BROKEN on RaspberryPi.
I just tried a test this morning using the started Electron app at https://electronjs.org/docs/tutorial/first-app
Running the automated install is a Red Herring. It is inappropriate to suggest it.
We have to figure out how to fix the bugs in the Node.js installation for Raspberry Pi before anything else. I’m wondering if installing an older version of Node.js is the solution. If so, then what version would we start with?
-
@devinhedge said in Clean installation... fails left and right:
for the last couple months Node.js and npm are currently BROKEN on RaspberryPi.
What version of node are you using and how are you trying to install it? Node.Js works fine with Raspberry Pi, just don’t install it from the default repos. Use these instructions:
https://github.com/nodesource/distributions/blob/master/README.md
I’ve installed both v8 and v10 successfully multiple times on new Pis in the last few months.
-
@shbatm said in Clean installation... fails left and right:
I’m seeing issues with the newest “Raspbian Stretch with desktop image” (Nov 2018–non-bloatware) as well – I did a fresh, manual installation, no errors, but electron will not start with the OpenGL driver (full KMS or fake KMS) enabled.
Confirming what I confirmed in the issue on GitHub just so others aren’t misled… Upgrading to Electron v3.0.13 is working fine (this is now the version installed if you use the develop branch of MM). V2.x is not working on the new Raspbian because of the OpenGL driver and we can’t use V4.x yet because of bad dependency references.
-
@shbatm how do I find out what version of electron I have, I’m on the latest version of Magic Mirror and would love to update everything on that side
-
cat ~/MagicMirror/node_modules/electron/package.json | grep '"version":'
Upgrade with:
cd ~/MagicMirror/ npm install electron@3.0.13
-
@shbatm said in Clean installation... fails left and right:
@devinhedge said in Clean installation... fails left and right:
for the last couple months Node.js and npm are currently BROKEN on RaspberryPi.
What version of node are you using and how are you trying to install it?
Current from default Rasbian repos.
Node.Js works fine with Raspberry Pi, just don’t install it from the default repos.
That may be the problem.
Use these instructions:
https://github.com/nodesource/distributions/blob/master/README.md
I’ve installed both v8 and v10 successfully multiple times on new Pis in the last few months.
I’ll give it a whirl. I was able to recreate the error 4 times so I just need to copy over the steps to recreate. I don’t have a lot of time to spend on it today.
-
@shbatm said in Clean installation... fails left and right:
cat ~/MagicMirror/node_modules/electron/package.json | grep ‘“version”:’
Thanks appears I was running electron 2.0.16 3.0.13 installed fixed a few vulnerabilities and all seems to be working fine on the Pi3B+