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 autostart script not working since last MM update

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 215 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.
    • M Offline
      meshuggahn
      last edited by

      Hi all,

      Since the last MM update my pm2 autostart script has not been working. Im pretty sure Ive updated all of the supporting software, but let me know if there is a version of anything I should double check.

      The mm.sh script is as posted and worked fine before the update:
      cd ./MagicMirror
      DISPLAY=:0 npm run start

      pm2 logs shows:
      /home/rpi/mm.sh: line 2: npm: command not found

      When I run npm run start in the terminal everything starts up just fine.

      What did I miss?

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

        @meshuggahn how did you update MagicMirror ?
        my script or manually ?

        can you show the output of

        which npm
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          meshuggahn @sdetweil
          last edited by

          @sdetweil

          which npm gives:
          /run/user/1000/fnm_multishells/23578_1753385757014/bin/npm

          npm -v gives:
          11.4.0

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

            @meshuggahn what os is this?

            i expected /usr/bin/npm
            or /usr/local/bin/npm

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              meshuggahn @sdetweil
              last edited by

              @sdetweil

              Raspbian v12.

              Would reinstalling node.js and npm be a good idea? This environment is new to me and always feels so cumbersome.

              Thanks for your help BTW.

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

                @meshuggahn i have no idea, this directory /run/usr, seems to be related to flatpack, but i have not seen nodejs/npm in flatpack packages

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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