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.

    pm2 and MagicMirror stopped

    Scheduled Pinned Locked Moved System
    11 Posts 2 Posters 2.5k 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.
    • S Offline
      sdetweil @sdetweil
      last edited by

      @sdetweil also, do

      pm2 stop all

      then

      cd ~/MagicMirror
      npm start

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • N6NGN Offline
        N6NG
        last edited by

        pi@raspberrypi:~/MagicMirror $ npm stop all
        npm ERR! Missing script: “stop”
        npm ERR!
        npm ERR! To see a list of scripts, run:
        npm ERR! npm run

        npm ERR! A complete log of this run can be found in:
        npm ERR! /home/pi/.npm/_logs/2022-08-05T23_00_11_817Z-debug-0.log
        pi@raspberrypi:~/MagicMirror $

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

          @N6NG pm2 stop all

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • N6NGN Offline
            N6NG
            last edited by

            That is what I got when i did a pm2 stop all.

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

              @N6NG no, you pasted that you did npm stop all, which is not valid

              pm2
              is not the same as
              npm

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • N6NGN Offline
                N6NG
                last edited by

                /MagicMirror $ npm start

                magicmirror@2.20.0 start
                DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

                /tmp/start-adaafac7.sh: 1: /tmp/start-adaafac7.sh: ./node_modules/.bin/electron: not found
                pi@raspberrypi:~/MagicMirror $

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

                  @N6NG fun

                  do

                  cd ~/MagicMirror
                  grep \"electron\": package.json
                  

                  it will display line like

                  	"electron": "^19.0.6"
                  

                  then do

                  npm install electron@19.0.6
                  

                  whatever the number is

                  then test with npm start again

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • N6NGN Offline
                    N6NG
                    last edited by

                    @sdetweil When I did the grep "electron":package.json it just sat and looked back at me for 5 minutes. So I canceled it and just did the npm install electron@19.0.0 and it installed just fine. Then I did npm start and it started the MagigMirror properly. So I’m guessing Iost the electron somehow. but I stopped MagicMirror and started it again with pm2 start MagicMirror and it worked fine…
                    Thank you Sam… I thought I had you there for a moment… I should have known better…
                    Dennis :)
                    I see the \ mark got dropped from my message after the word electron but it was there when I typed it .

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

                      @N6NG you had to do the grep exactly Iike it I typed it, else it will return nothing…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 2 / 2
                      • 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