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

Scheduled Pinned Locked Moved Unsolved Troubleshooting
13 Posts 6 Posters 5.0k Views 5 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
    Status Board
    last edited by Oct 31, 2018, 2:09 PM

    I have the exact same issue. Have you found a fix for this?

    1 Reply Last reply Reply Quote 0
    • L Offline
      lavolp3 Module Developer
      last edited by lavolp3 Oct 31, 2018, 2:54 PM Oct 31, 2018, 2:50 PM

      Have you tried reinstalling pm2 or installing the latest version?

      sudo npm install pm2@latest -g
      

      I can’t find the line mentioned in the file /usr/lib/node_modules/pm2.
      So better reinstall I guess…

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      S 1 Reply Last reply Oct 31, 2018, 4:05 PM Reply Quote 0
      • S Offline
        Status Board @lavolp3
        last edited by Oct 31, 2018, 4:05 PM

        @lavolp3 I have not, right now my workaround is not using pm2 at all and just starting Magic Mirror with DISPLAY=:0 npm start

        D 1 Reply Last reply Nov 18, 2018, 9:21 PM Reply Quote 0
        • D Offline
          dawookie1979
          last edited by Nov 8, 2018, 8:37 PM

          tried re-installing, same issue

          1 Reply Last reply Reply Quote 0
          • D Offline
            dawookie1979 @Status Board
            last edited by Nov 18, 2018, 9:21 PM

            @status-board how do I do this

            L 1 Reply Last reply Nov 19, 2018, 9:22 AM Reply Quote 0
            • L Offline
              lavolp3 Module Developer @dawookie1979
              last edited by Nov 19, 2018, 9:22 AM

              @dawookie1979 @Status-Board
              can you please explain again how (the command) and from which folder you have installed pm2?
              And what is your system running?

              How to troubleshoot modules
              MMM-soccer v2, MMM-AVStock

              1 Reply Last reply Reply Quote 0
              • D Offline
                dawookie1979
                last edited by Nov 26, 2018, 12:28 PM

                i have tried installing pm2 using sudo npm install pm2@latest -g command, either to the root directory or within magic mirror directory.

                i am running raspberry pi3 Magic Mirror 2.5

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bhepler Module Developer @dawookie1979
                  last edited by Nov 28, 2018, 4:19 AM

                  @dawookie1979 - At a guess, it looks like pm2 is not compatible with the version of node that you have on your pi. I would try upgrading node then re-running the pm2 startup command.

                  1 Reply Last reply Reply Quote 1
                  • D Offline
                    dawookie1979
                    last edited by Nov 28, 2018, 2:38 PM

                    thanks, i will try that. Can you give me the command / commands to run this node update.

                    M 1 Reply Last reply Nov 29, 2018, 1:51 AM Reply Quote 0
                    • M Offline
                      Mykle1 Project Sponsor Module Developer @dawookie1979
                      last edited by Nov 29, 2018, 1:51 AM

                      @dawookie1979

                      sudo apt update

                      then

                      sudo apt install nodejs

                      That should do it.

                      Create a working config
                      How to add modules

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