• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

I get error in magic mirror when am installing the magic mirror the cmd: npm run start

Scheduled Pinned Locked Moved Bug Hunt
20 Posts 3 Posters 6.2k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    Chethan
    last edited by Feb 12, 2021, 11:14 AM

    Hello Team hope you all are well i get this error when am install magic mirror please help me
    am realy upset this is the first time i try to install i get this error

    Can any one give he solution
    @magicmirrorpi4 @raspberry

    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-12T11_07_24_537Z-debug.log

    i hope i will get the fast respponce

    Thanks
    Chethan P

    0 S 2 Replies Last reply Feb 12, 2021, 11:29 AM Reply Quote 0
    • 0 Offline
      0m4r Module Developer @Chethan
      last edited by Feb 12, 2021, 11:29 AM

      @chethan have you done an “npm install” before the “npm start”?

      https://github.com/0m4r

      C 2 Replies Last reply Feb 12, 2021, 12:04 PM Reply Quote 0
      • S Offline
        sdetweil @Chethan
        last edited by Feb 12, 2021, 11:48 AM

        @chethan you must be in the MagicMirror folder
        cd MagicMirror
        npm start

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Feb 12, 2021, 12:08 PM Reply Quote 0
        • C Offline
          Chethan @0m4r
          last edited by Feb 12, 2021, 12:04 PM

          @0m4r yes i allready install whatin magic mirror doc i follow the same steps
          but its not working

          1 Reply Last reply Reply Quote 0
          • C Offline
            Chethan @sdetweil
            last edited by Feb 12, 2021, 12:08 PM

            @sdetweil
            Yes am in that folder only before start the magic mirror i use this steps: npm install after that npm run

            but 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.log

            help me any one

            1 Reply Last reply Reply Quote 0
            • C Offline
              Chethan @0m4r
              last edited by Feb 12, 2021, 12:19 PM

              @0m4r when am running in the server its working but when am try to run in the local its not working

              0 1 Reply Last reply Feb 12, 2021, 1:04 PM Reply Quote 0
              • 0 Offline
                0m4r Module Developer @Chethan
                last edited by Feb 12, 2021, 1:04 PM

                @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

                https://github.com/0m4r

                C 1 Reply Last reply Feb 12, 2021, 1:06 PM Reply Quote 0
                • C Offline
                  Chethan @0m4r
                  last edited by Feb 12, 2021, 1:06 PM

                  @0m4r raspberry pi 4

                  0 1 Reply Last reply Feb 12, 2021, 1:06 PM Reply Quote 0
                  • 0 Offline
                    0m4r Module Developer @Chethan
                    last edited by Feb 12, 2021, 1:06 PM

                    @chethan yeah, thanks, but what operating system?

                    https://github.com/0m4r

                    C 1 Reply Last reply Feb 12, 2021, 1:09 PM Reply Quote 0
                    • C Offline
                      Chethan @0m4r
                      last edited by Feb 12, 2021, 1:09 PM

                      @0m4r f1987bcd-5237-4490-8790-addce00864a2-image.png

                      i dont know what is the software that is being fresher in this

                      S 1 Reply Last reply Feb 12, 2021, 1:18 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/20
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy