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.

    after update and upgrade raspberry and magic mirror

    Scheduled Pinned Locked Moved Solved Troubleshooting
    13 Posts 3 Posters 5.1k Views 2 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.
    • F Offline
      Fonfon
      last edited by Fonfon

      Hi,
      Thanks to help me this is the message when i try to start with “npm start”

      pi@raspberrypi:~/MagicMirror $ npm start
      (node:5115) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

      magicmirror@2.6.0 start /home/pi/.local/share/Trash/files/MagicMirror.2
      sh run-start.sh

      run-start.sh: 4: run-start.sh: electron: not found

      npm ERR! magicmirror@2.6.0 start: sh run-start.sh
      npm ERR! Exit status 127
      npm ERR!
      npm ERR! Failed at the magicmirror@2.6.0 start script.
      npm ERR! This is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR! sh run-start.sh
      npm ERR! You can get their info via:
      npm ERR! npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.
      npm ERR! System Linux 4.14.79-v7+
      npm ERR! command “/usr/bin/node” “/usr/bin/npm” “start”
      npm ERR! cwd /home/pi/.local/share/Trash/files/MagicMirror.2
      npm ERR! node -v v8.11.1
      npm ERR! npm -v 1.4.21
      npm ERR! code ELIFECYCLE
      npm WARN This failure might be due to the use of legacy binary “node”
      npm WARN For further explanations, please read
      /usr/share/doc/nodejs/README.Debian

      npm ERR!
      npm ERR! Additional logging details can be found in:
      npm ERR! /home/pi/.local/share/Trash/files/MagicMirror.2/npm-debug.log
      npm ERR! not ok code 0
      pi@raspberrypi:~/MagicMirror $

      1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil
        last edited by

        can u show us the output of

        npm -v
        

        and

        node -v
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          Fonfon @sdetweil
          last edited by

          @sdetweil thanks

          pi@raspberrypi:~/MagicMirror $ npm -v
          1.4.21
          (node:5164) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

          and

          pi@raspberrypi:~/MagicMirror $ node -v
          v8.11.1

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Fonfon
            last edited by sdetweil

            @fonfon said in after update and upgrade raspberry and magic mirror:

            pi@raspberrypi:~/MagicMirror $ npm -v
            1.4.21

            that is very old… please upgrade,

            i have 2 systems, 1 is at 3.5.2 (still too old, thx will upgrade)
            and 6.1.0

            use

            curl -L https://npmjs.org/install.sh | sudo sh
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              Fonfon @sdetweil
              last edited by

              @sdetweil thanks your command works great for upgrade !
              but after i have the same problem

              pi@raspberrypi:~ $ npm -v
              6.6.0
              pi@raspberrypi:~ $ cd MagicMirror/
              pi@raspberrypi:~/MagicMirror $ npm start

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

              run-start.sh: 4: run-start.sh: electron: not found
              npm ERR! file sh
              npm ERR! code ELIFECYCLE
              npm ERR! errno ENOENT
              npm ERR! syscall spawn
              npm ERR! magicmirror@2.6.0 start: sh run-start.sh
              npm ERR! spawn ENOENT
              npm ERR!
              npm ERR! Failed at the magicmirror@2.6.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-01-20T16_40_06_112Z-debug.log
              pi@raspberrypi:~/MagicMirror $

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Fonfon
                last edited by

                @fonfon in the magic mirror folder

                npm -i electron
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  Fonfon @sdetweil
                  last edited by

                  @sdetweil command don’t work

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Fonfon
                    last edited by

                    @fonfon please add more info

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    F 1 Reply Last reply Reply Quote 0
                    • F Offline
                      Fonfon @sdetweil
                      last edited by

                      @sdetweil for sure sorry

                      pi@raspberrypi:~/MagicMirror $ npm -i electron

                      Usage: npm

                      where is one of:
                      access, adduser, audit, bin, bugs, c, cache, ci, cit,
                      clean-install, clean-install-test, completion, config,
                      create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
                      edit, explore, get, help, help-search, hook, i, init,
                      install, install-ci-test, install-test, it, link, list, ln,
                      login, logout, ls, org, outdated, owner, pack, ping, prefix,
                      profile, prune, publish, rb, rebuild, repo, restart, root,
                      run, run-script, s, se, search, set, shrinkwrap, star,
                      stars, start, stop, t, team, test, token, tst, un,
                      uninstall, unpublish, unstar, up, update, v, version, view,
                      whoami

                      npm -h quick help on
                      npm -l display full usage info
                      npm help search for help on
                      npm help npm involved overview

                      Specify configs in the ini-formatted file:
                      /home/pi/.npmrc
                      or on the command line via: npm --key value
                      Config info can be viewed via: npm help config

                      npm@6.6.0 /usr/lib/node_modules/npm

                      pi@raspberrypi:~/MagicMirror $

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Fonfon
                        last edited by

                        @fonfon ok, my mistake

                        npm i electron
                        

                        no dash (-)

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        F 1 Reply Last reply Reply Quote 2
                        • F Offline
                          Fonfon @sdetweil
                          last edited by

                          @sdetweil after that
                          i’ll make a
                          npm audit
                          npm audit fix
                          npm install

                          and now it’s work great

                          Thanks very much @sdetweil for your help !!!

                          1 Reply Last reply Reply Quote 2
                          • S Do not disturb
                            sdetweil
                            last edited by

                            great feedback , thank you

                            please mark your issue resolved…

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 1
                            • bheplerB Offline
                              bhepler Module Developer
                              last edited by

                              In the future, please use the Markdown features of the board when posting code and logs.

                              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 / 1
                              • 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