• 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.

after update and upgrade raspberry and magic mirror

Scheduled Pinned Locked Moved Solved Troubleshooting
13 Posts 3 Posters 3.6k 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 Jan 20, 2019, 3:39 PM Jan 20, 2019, 3:37 PM

    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 Away
      sdetweil
      last edited by Jan 20, 2019, 3:39 PM

      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 Jan 20, 2019, 3:42 PM Reply Quote 0
      • F Offline
        Fonfon @sdetweil
        last edited by Jan 20, 2019, 3:42 PM

        @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 Jan 20, 2019, 3:49 PM Reply Quote 0
        • S Away
          sdetweil @Fonfon
          last edited by sdetweil Jan 20, 2019, 4:11 PM Jan 20, 2019, 3:49 PM

          @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 Jan 20, 2019, 4:41 PM Reply Quote 0
          • F Offline
            Fonfon @sdetweil
            last edited by Jan 20, 2019, 4:41 PM

            @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 Jan 20, 2019, 4:44 PM Reply Quote 0
            • S Away
              sdetweil @Fonfon
              last edited by Jan 20, 2019, 4:44 PM

              @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 Jan 20, 2019, 4:48 PM Reply Quote 0
              • F Offline
                Fonfon @sdetweil
                last edited by Jan 20, 2019, 4:48 PM

                @sdetweil command don’t work

                S 1 Reply Last reply Jan 20, 2019, 4:55 PM Reply Quote 0
                • S Away
                  sdetweil @Fonfon
                  last edited by Jan 20, 2019, 4:55 PM

                  @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 Jan 20, 2019, 5:01 PM Reply Quote 0
                  • F Offline
                    Fonfon @sdetweil
                    last edited by Jan 20, 2019, 5:01 PM

                    @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 Jan 20, 2019, 5:13 PM Reply Quote 0
                    • S Away
                      sdetweil @Fonfon
                      last edited by Jan 20, 2019, 5:13 PM

                      @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 Jan 20, 2019, 5:22 PM Reply Quote 2
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        6/13
                        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