Installation Error - Electron installer issue
I’m trying to use the automatic installer on a new rasp pi 3, update jessie raspbian version ( no other packages installed ) but I’m getting the same error over and over again.
The installation always fails at the point of post install of Electron ( see screenshot below )
Cloning MagicMirror Done!
module.js:442 throw err; ^ Error: Cannot find module '/root/MagicMirror/node_modules/electron-prebuilt/install.js' at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Function.Module.runMain (module.js:575:10) at startup (node.js:160:18) at node.js:456:3
At the end, the installation stops with the following error:
npm ERR! firstname.lastname@example.org postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the email@example.com postinstall script 'node install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron-prebuilt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron-prebuilt npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron-prebuilt npm ERR! There is likely additional logging output above.
Anyone some thoughts they want to share?
Edit from admin: Please use Markdown on code snippets!
Same error on my side … I hoped to find a solution here but it looks like no one answered …
I have the same error - running it on a headless Pi3 (ie I Putty in from elsewhere and monitor the output from elsewhere too).
I have been told that I should not run MM from the CLI, but rather that "The application needs to be started while the GUI-environment is running.’
Can you please confirm if you are running ON THE PI directly or if you SSH’ed in?
I’m running directly on the PI !
You should not install MagicMirror as Root in the
check out this:
I think it is the same issue.
as I c, you’ve installed your MagicMirror in the /root directory.
I’m not sure if this is working so far.
Try to install everything as pi and not as root in the /home/pi directory and let us know what happend.
update your distribution with
sudo apt-get update && sudo apt-get upgrade
cd /home/pior only
and install again:
curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash
Thanks for your answer, I’m going to try that right now !
how was it? :-)
I found this one
and it worked like a charm… (and it it so detailed even I could not mess it up)
On top of that, it is lean and made my WiFi FINALLY work too. Now all I need is the toaster attachment to my Pi
Best of luck!
Perfect ! I installed MM2 as PI user and it works now !
Thanks for your help