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.

    updated installer script available for testing

    Scheduled Pinned Locked Moved Solved Troubleshooting
    211 Posts 18 Posters 287.2k Views 19 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.
    • S Offline
      sdetweil @Newbie007
      last edited by

      @Newbie007 no, just rename. If u are happy, just delete the older folder

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil
        last edited by

        I have submitted these changes under pull request 1789

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • M Offline
          mrdenmark
          last edited by

          i’ve tried running this installer a couple of times now but i keep getting the message-unable to install dependencies-any suggestions on how to proceed?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @mrdenmark
            last edited by

            @mrdenmark show me the install.log from the MagicMirror folder… email to me if cannot post…

            email userid is same as here on gmail

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              mrdenmark
              last edited by

              [0_1571974919417_install.log](Uploading 100%)

              S 1 Reply Last reply Reply Quote 0
              • M Offline
                mrdenmark
                last edited by

                email sent,

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @mrdenmark
                  last edited by

                  @mrdenmark thanks… can u try

                  cd ~/MagicMirror
                  rm -rf node_modules
                  npm install
                  

                  please advise results

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    Newbie007
                    last edited by

                    Hey, it worked for me thanks!

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mrdenmark
                      last edited by mrdenmark

                      no joy for me,heres a copy of the terminal output-
                      pi@raspberrypi:~/MagicMirror $ rm -rf node_modules
                      pi@raspberrypi:~/MagicMirror $ npm install
                      npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
                      npm WARN acorn-jsx@5.1.0 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.

                      npm ERR! code ENOENT
                      npm ERR! syscall chmod
                      npm ERR! path /home/pi/MagicMirror/node_modules/jsesc/bin/jsesc
                      npm ERR! errno -2
                      npm ERR! enoent ENOENT: no such file or directory, chmod ‘/home/pi/MagicMirror/node_modules/jsesc/bin/jsesc’
                      npm ERR! enoent This is related to npm not being able to find a file.
                      npm ERR! enoent

                      npm ERR! A complete log of this run can be found in:
                      npm ERR! /home/pi/.npm/_logs/2019-10-25T19_15_39_049Z-debug.log
                      pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start

                      magicmirror@2.9.0 start /home/pi/MagicMirror
                      sh run-start.sh

                      run-start.sh: 7: run-start.sh: electron: not found
                      npm ERR! code ELIFECYCLE
                      npm ERR! syscall spawn
                      npm ERR! file sh
                      npm ERR! errno ENOENT
                      npm ERR! magicmirror@2.9.0 start: sh run-start.sh
                      npm ERR! spawn ENOENT
                      npm ERR!
                      npm ERR! Failed at the magicmirror@2.9.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/2019-10-25T19_16_09_123Z-debug.log
                      pi@raspberrypi:~/MagicMirror $ ^C
                      pi@raspberrypi:~/MagicMirror $

                      any suggestions?
                      many thanks for your help so far!

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        mrdenmark
                        last edited by

                        heres the debug log-

                        0 info it worked if it ends with ok
                        1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’ ]
                        2 info using npm@6.12.0
                        3 info using node@v12.13.0
                        4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
                        5 info lifecycle magicmirror@2.9.0~prestart: magicmirror@2.9.0
                        6 info lifecycle magicmirror@2.9.0~start: magicmirror@2.9.0
                        7 verbose lifecycle magicmirror@2.9.0~start: unsafe-perm in lifecycle true
                        8 verbose lifecycle magicmirror@2.9.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
                        9 verbose lifecycle magicmirror@2.9.0~start: CWD: /home/pi/MagicMirror
                        10 silly lifecycle magicmirror@2.9.0~start: Args: [ ‘-c’, ‘sh run-start.sh’ ]
                        11 info lifecycle magicmirror@2.9.0~start: Failed to exec start script
                        12 verbose stack Error: magicmirror@2.9.0 start: sh run-start.sh
                        12 verbose stack spawn ENOENT
                        12 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
                        12 verbose stack at ChildProcess.emit (events.js:210:5)
                        12 verbose stack at maybeClose (internal/child_process.js:1021:16)
                        12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
                        13 verbose pkgid magicmirror@2.9.0
                        14 verbose cwd /home/pi/MagicMirror
                        15 verbose Linux 4.19.75-v7+
                        16 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
                        17 verbose node v12.13.0
                        18 verbose npm v6.12.0
                        19 error code ELIFECYCLE
                        20 error syscall spawn
                        21 error file sh
                        22 error errno ENOENT
                        23 error magicmirror@2.9.0 start: sh run-start.sh
                        23 error spawn ENOENT
                        24 error Failed at the magicmirror@2.9.0 start script.
                        24 error This is probably not a problem with npm. There is likely additional logging output above.
                        25 verbose exit [ 1, true ]

                        S 2 Replies Last reply Reply Quote 0
                        • S Offline
                          sdetweil @mrdenmark
                          last edited by

                          @mrdenmark great info! Let me research this

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @mrdenmark
                            last edited by sdetweil

                            @mrdenmark said in Anyone want to try updated installer...:

                            2 info using npm@6.12.0
                            3 info using node@v12.13.0

                            can you do

                            sudo npm i -g npm 
                            

                            the try the npm install from the MagicMirror folder
                            also, show me the output of uname -a
                            what OS is this?

                            i don’t have node_modules/jsec installed either, but no error…

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @mrdenmark
                              last edited by

                              @mrdenmark i am installing in text mode OS… first time… will report

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              M 1 Reply Last reply Reply Quote 0
                              • M Offline
                                mrdenmark @sdetweil
                                last edited by

                                @sdetweil

                                terminal output below of everything i just tried,uname at the bottom.
                                do you want the debug logs pasting?

                                pi@raspberrypi:~/MagicMirror $ sudo npm i 0g npm
                                npm ERR! code ENOVERSIONS
                                npm ERR! No valid versions available for 0g

                                npm ERR! A complete log of this run can be found in:
                                npm ERR! /root/.npm/_logs/2019-10-26T03_33_41_912Z-debug.log
                                pi@raspberrypi:~/MagicMirror $ cd
                                pi@raspberrypi:~ $ sudo npm i 0g npm
                                npm ERR! code ENOVERSIONS
                                npm ERR! No valid versions available for 0g

                                npm ERR! A complete log of this run can be found in:
                                npm ERR! /root/.npm/_logs/2019-10-26T03_34_31_151Z-debug.log

                                pi@raspberrypi:~ $ cd ~/MagicMirror
                                pi@raspberrypi:~/MagicMirror $ npm install
                                npm WARN tarball cached data for json5@^2.1.0 (sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ==) seems to be corrupted. Refreshing cache.
                                npm WARN tarball cached data for jsesc@^2.5.1 (sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==) seems to be corrupted. Refreshing cache.

                                magicmirror@2.9.0 install /home/pi/MagicMirror
                                cd vendor && npm install

                                npm WARN tarball cached data for is-extendable@0.1.1 (sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=) seems to be corrupted. Refreshing cache.
                                npm WARN tarball cached data for lcid@1.0.0 (sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=) seems to be corrupted. Refreshing cache.
                                npm WARN tarball cached data for minimatch@3.0.4 (sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==) seems to be corrupted. Refreshing cache.
                                npm WARN tarball cached data for invert-kv@1.0.0 (sha1-EEqOSqym09jNFXqO+L+rLXo//bY=) seems to be corrupted. Refreshing cache.
                                npm WARN tarball cached data for os-locale@1.4.0 (sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=) seems to be corrupted. Refreshing cache.
                                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
                                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})

                                added 82 packages from 56 contributors and audited 220 packages in 204.709s
                                found 5 vulnerabilities (4 low, 1 high)
                                run npm audit fix to fix them, or npm audit for details

                                magicmirror@2.9.0 postinstall /home/pi/MagicMirror
                                sh untrack-css.sh && sh installers/postinstall/postinstall.sh && npm run install-fonts

                                MagicMirror installation successful!

                                magicmirror@2.9.0 install-fonts /home/pi/MagicMirror
                                cd fonts && npm install

                                added 1 package from 1 contributor and audited 1 package in 25.735s
                                found 0 vulnerabilities

                                added 50 packages from 51 contributors, removed 7 packages, updated 10 packages, moved 1 package and audited 3714 packages in 543.232s
                                found 29 vulnerabilities (1 low, 1 moderate, 27 high)
                                run npm audit fix to fix them, or npm audit for details
                                pi@raspberrypi:~/MagicMirror $ npm start

                                magicmirror@2.9.0 start /home/pi/MagicMirror
                                sh run-start.sh

                                run-start.sh: 7: run-start.sh: electron: not found
                                npm ERR! code ELIFECYCLE
                                npm ERR! syscall spawn
                                npm ERR! file sh
                                npm ERR! errno ENOENT
                                npm ERR! magicmirror@2.9.0 start: sh run-start.sh
                                npm ERR! spawn ENOENT
                                npm ERR!
                                npm ERR! Failed at the magicmirror@2.9.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/2019-10-26T03_48_33_404Z-debug.log
                                pi@raspberrypi:~/MagicMirror $ cd
                                pi@raspberrypi:~ $ uname -a
                                Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
                                pi@raspberrypi:~ $

                                S 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  mrdenmark
                                  last edited by

                                  i never thought to mention it before but i have MM working on a windows laptop-i’ve been playing around with it while i waited for all my parts to arrive-are there any files that i can copy between the 2 machines to fix the problem?

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @mrdenmark
                                    last edited by

                                    @mrdenmark said in Anyone want to try updated installer...:

                                    sudo npm i 0g npm

                                    oops… I miss typed

                                    sudo npm i -g npm
                                    then lets erase the node_modules folder again
                                    rm -rf node_modules
                                    then
                                    npm install

                                    i don’t like the ‘seems to be corrupted’
                                    maybe some problem with the memory card?

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mrdenmark
                                      last edited by

                                      still no luck-
                                      did i run the commands in the correct folder?

                                      pi@raspberrypi:~/MagicMirror $ sudo npm i -g npm
                                      /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
                                      /usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js

                                      • npm@6.12.0
                                        updated 1 package in 252.773s
                                        pi@raspberrypi:~/MagicMirror $ rm -rf node_modules
                                        pi@raspberrypi:~/MagicMirror $ npm install
                                        npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.

                                      electron-chromedriver@1.8.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver
                                      node ./download-chromedriver.js

                                      internal/modules/cjs/loader.js:797
                                      throw err;
                                      ^

                                      Error: Cannot find module ‘ms’
                                      Require stack:

                                      • /home/pi/MagicMirror/node_modules/debug/src/debug.js
                                      • /home/pi/MagicMirror/node_modules/debug/src/node.js
                                      • /home/pi/MagicMirror/node_modules/debug/src/index.js
                                      • /home/pi/MagicMirror/node_modules/electron-chromedriver/node_modules/electron-download/lib/index.js
                                      • /home/pi/MagicMirror/node_modules/electron-chromedriver/download-chromedriver.js
                                        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
                                        at Function.Module._load (internal/modules/cjs/loader.js:687:27)
                                        at Module.require (internal/modules/cjs/loader.js:849:19)
                                        at require (internal/modules/cjs/helpers.js:74:18)
                                        at Object. (/home/pi/MagicMirror/node_modules/debug/src/debug.js:14:20)
                                        at Module._compile (internal/modules/cjs/loader.js:956:30)
                                        at Object.Module._extensions…js (internal/modules/cjs/loader.js:973:10)
                                        at Module.load (internal/modules/cjs/loader.js:812:32)
                                        at Function.Module._load (internal/modules/cjs/loader.js:724:14)
                                        at Module.require (internal/modules/cjs/loader.js:849:19) {
                                        code: ‘MODULE_NOT_FOUND’,
                                        requireStack: [
                                        ‘/home/pi/MagicMirror/node_modules/debug/src/debug.js’,
                                        ‘/home/pi/MagicMirror/node_modules/debug/src/node.js’,
                                        ‘/home/pi/MagicMirror/node_modules/debug/src/index.js’,
                                        ‘/home/pi/MagicMirror/node_modules/electron-chromedriver/node_modules/electron-download/lib/index.js’,
                                        ‘/home/pi/MagicMirror/node_modules/electron-chromedriver/download-chromedriver.js’
                                        ]
                                        }
                                        npm WARN acorn-jsx@5.1.0 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.

                                      npm ERR! code ELIFECYCLE
                                      npm ERR! errno 1
                                      npm ERR! electron-chromedriver@1.8.0 install: node ./download-chromedriver.js
                                      npm ERR! Exit status 1
                                      npm ERR!
                                      npm ERR! Failed at the electron-chromedriver@1.8.0 install 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/2019-10-26T18_37_05_007Z-debug.log
                                      pi@raspberrypi:~/MagicMirror $ npm start

                                      magicmirror@2.9.0 start /home/pi/MagicMirror
                                      sh run-start.sh

                                      /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:956:30)
                                      at Object.Module._extensions…js (internal/modules/cjs/loader.js:973:10)
                                      at Module.load (internal/modules/cjs/loader.js:812:32)
                                      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
                                      at Module.require (internal/modules/cjs/loader.js:849:19)
                                      at require (internal/modules/cjs/helpers.js:74:18)
                                      at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
                                      at Module._compile (internal/modules/cjs/loader.js:956:30)
                                      npm ERR! code ELIFECYCLE
                                      npm ERR! errno 1
                                      npm ERR! magicmirror@2.9.0 start: sh run-start.sh
                                      npm ERR! Exit status 1
                                      npm ERR!
                                      npm ERR! Failed at the magicmirror@2.9.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/2019-10-26T18_42_43_684Z-debug.log
                                      pi@raspberrypi:~/MagicMirror $

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        mrdenmark
                                        last edited by

                                        debug-

                                        0 info it worked if it ends with ok
                                        1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’ ]
                                        2 info using npm@6.12.0
                                        3 info using node@v12.13.0
                                        4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
                                        5 info lifecycle magicmirror@2.9.0~prestart: magicmirror@2.9.0
                                        6 info lifecycle magicmirror@2.9.0~start: magicmirror@2.9.0
                                        7 verbose lifecycle magicmirror@2.9.0~start: unsafe-perm in lifecycle true
                                        8 verbose lifecycle magicmirror@2.9.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
                                        9 verbose lifecycle magicmirror@2.9.0~start: CWD: /home/pi/MagicMirror
                                        10 silly lifecycle magicmirror@2.9.0~start: Args: [ ‘-c’, ‘sh run-start.sh’ ]
                                        11 silly lifecycle magicmirror@2.9.0~start: Returned: code: 1 signal: null
                                        12 info lifecycle magicmirror@2.9.0~start: Failed to exec start script
                                        13 verbose stack Error: magicmirror@2.9.0 start: sh run-start.sh
                                        13 verbose stack Exit status 1
                                        13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
                                        13 verbose stack at EventEmitter.emit (events.js:210:5)
                                        13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
                                        13 verbose stack at ChildProcess.emit (events.js:210:5)
                                        13 verbose stack at maybeClose (internal/child_process.js:1021:16)
                                        13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
                                        14 verbose pkgid magicmirror@2.9.0
                                        15 verbose cwd /home/pi/MagicMirror
                                        16 verbose Linux 4.19.75-v7+
                                        17 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
                                        18 verbose node v12.13.0
                                        19 verbose npm v6.12.0
                                        20 error code ELIFECYCLE
                                        21 error errno 1
                                        22 error magicmirror@2.9.0 start: sh run-start.sh
                                        22 error Exit status 1
                                        23 error Failed at the magicmirror@2.9.0 start script.
                                        23 error This is probably not a problem with npm. There is likely additional logging output above.
                                        24 verbose exit [ 1, true ]

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sdetweil @mrdenmark
                                          last edited by

                                          @mrdenmark wow. I can only think there is something wrong with your memory card. You are getting garbage results.

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            mrdenmark
                                            last edited by

                                            i’ll see if i can dig out a spare one and try again,thanks again for your assistance!

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 10
                                            • 11
                                            • 3 / 11
                                            • First post
                                              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