Read the statement by Michael Teeuw here.
Manual Installation Trouble
-
Manual Installation Trouble Error
-
@brendan_c23 use my install script
see https://github.com/sdetweil/MagicMirror_scripts -
@brendan_c23 I am attempting to install the latest Node.js version using the code provided on the manual installation page of this website. I copy and pasted each line one by one as directed. When I got to the “npm run start” line, I am hit with these lines:
pi@raspberrypi:~/MagicMirror $ npm run start
magicmirror@2.14.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js/home/pi/MagicMirror/node_modules/electron/index.js:14
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.14.0 start:DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.14.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-01-16T20_10_19_289Z-debug.logI am not sure where to go from here. Any guidance/help would be greatly appreciated. I am using a 2Gb raspberry Pi 4. I have a very limited background in coding, but I notice it is telling me to delete the node_modules/electron and try installing again, any guidance on how to go about doing that would be appreciated.
Thanks you guys
-
@brendan_c23 use my script. delete the mm folder and run my script
u are running the desktop version of pi os yes? u must
-
@sdetweil Do I need to clear all of the previous downloads/code or am I good to just copy + paste that line below everything?
-
-
@sdetweil Delete MM folder? How do I do that
And I think so but not totally sure -
@brendan_c23 I gave u the command
-
@sdetweil Thank you. Can you link me to PM2 installation
-
@brendan_c23 it’s part of the install, u will be prompted. also see rest of the scripts