MagicMirror
MagicMirror copied to clipboard
problmem when i run npm start
[email protected] start /home/pi/MagicMirror DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
/home/pi/MagicMirror/node_modules/electron/index.js:17 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:17:11)
at Object.DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/2022-01-28T20_09_06_161Z-debug.log
what pi? uname - a will help
what pi os? lsb_release -a will help
if you used my scripted install it probably would have fixed the problem see https://github.com/sdetweil/MagicMirror_scripts
This problem is due to improper installation of electron.
Try to remove node_modules
and npm cache clean --force
After doing this, run npm i
A piece of advice have a good internet connection to avoid having a corrupt installation of electron !
@Hamzacos did you resolve this?
Maybe we shoudl close this @MichMich since @Hamzacos hasnt responded in quite a few months...