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

pm2 and MagicMirror stopped

Scheduled Pinned Locked Moved System
11 Posts 2 Posters 1.9k 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 Away
    sdetweil @N6NG
    last edited by Aug 5, 2022, 11:21 PM

    @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
    • N Offline
      N6NG
      last edited by Aug 5, 2022, 11:35 PM

      /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 Aug 5, 2022, 11:41 PM Reply Quote 0
      • S Away
        sdetweil @N6NG
        last edited by Aug 5, 2022, 11:41 PM

        @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
        • N Offline
          N6NG
          last edited by Aug 6, 2022, 12:08 AM

          @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 Aug 6, 2022, 12:17 AM Reply Quote 0
          • S Away
            sdetweil @N6NG
            last edited by Aug 6, 2022, 12:17 AM

            @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
            2 / 2
            • First post
              11/11
              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