Read the statement by Michael Teeuw here.
I get error in magic mirror when am installing the magic mirror the cmd: npm run start
-
@chethan have you done an “npm install” before the “npm start”?
-
@chethan you must be in the MagicMirror folder
cd MagicMirror
npm start -
@0m4r yes i allready install whatin magic mirror doc i follow the same steps
but its not working -
@sdetweil
Yes am in that folder only before start the magic mirror i use this steps: npm install after that npm runbut error look like the same check bellow
pi@raspberrypi:~/MagicMirror $ npm 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:1063:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
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-02-12T12_06_40_294Z-debug.loghelp me any one
-
@0m4r when am running in the server its working but when am try to run in the local its not working
-
@chethan what is the Os you have installed it on? it it is the “lite” version it will not work. Electron requires a GUI interface to run
-
@0m4r raspberry pi 4
-
@chethan yeah, thanks, but what operating system?
-
i dont know what is the software that is being fresher in this
-
@chethan are u running in desktop mode, or text mode command prompt.
must be desktop mode, electron requires graphics mode
-
@sdetweil no am running my own Samsung desktop I connect raspberry to that display
-
@sdetweil i give code on the pi cmd
-
-
@chethan
do you connect via ssh to your rasperry pi?
then use this:
DISPLAY=:0 nohup npm start -
@0m4r npm start sets DISPLAY now so u dont have to do this.
i think he is running cli mode, no xwindows
-
@0m4r yaa its working now but when am run the mmm google assistance i get this error
after complet all steps when am give this cmdcd ~/MagicMirror/modules/MMM-GoogleAssistant node auth_and_test.jsinternal/modules/cjs/loader.js:638
throw err;
^Error: Cannot find module ‘@bugsounet/google-assistant’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/auth_and_test.js:7:25)
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) -
@sdetweil said in I get error in magic mirror when am installing the magic mirror the cmd: npm run start:
i think he is running cli mode, no xwindows
yes am running in the cli wifi
-
@chethan you must run in desktop mode if u want mm to display on the pi. the browser requires graphics
-
@chethan I suggest you contact the module developer. Can’t help with it :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
