Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED PM2 error

    Troubleshooting
    6
    13
    2424
    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.
    • D
      dawookie1979 last edited by

      I get this error when trying to run pm2 startup

      pi@MagicMirror:~ $ pm2 startup
      /usr/lib/node_modules/pm2/bin/pm2:6
      if (semver.satisfies(process.versions.node, ‘>= 6.0.0’))
      ^

      TypeError: semver.satisfies is not a function
      at Object. (/usr/lib/node_modules/pm2/bin/pm2:6:12)
      at Module._compile (internal/modules/cjs/loader.js:654:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:665:10)
      at Module.load (internal/modules/cjs/loader.js:566:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
      at Function.Module._load (internal/modules/cjs/loader.js:498:3)
      at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
      at startup (internal/bootstrap/node.js:201:19)
      at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)

      Please help a novice

      bhepler 1 Reply Last reply Reply Quote 0
      • S
        Status Board last edited by

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

        1 Reply Last reply Reply Quote 0
        • lavolp3
          lavolp3 Module Developer last edited by lavolp3

          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…

          S 1 Reply Last reply Reply Quote 0
          • S
            Status Board @lavolp3 last edited by

            @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 Reply Quote 0
            • D
              dawookie1979 last edited by

              tried re-installing, same issue

              1 Reply Last reply Reply Quote 0
              • D
                dawookie1979 @Status Board last edited by

                @status-board how do I do this

                lavolp3 1 Reply Last reply Reply Quote 0
                • lavolp3
                  lavolp3 Module Developer @dawookie1979 last edited by

                  @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?

                  1 Reply Last reply Reply Quote 0
                  • D
                    dawookie1979 last edited by

                    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
                    • bhepler
                      bhepler Project Sponsor @dawookie1979 last edited by

                      @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
                        dawookie1979 last edited by

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

                        Mykle1 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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy