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

cannot install pm2

Scheduled Pinned Locked Moved Troubleshooting
46 Posts 2 Posters 10.6k 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 @mrlowndes
    last edited by Apr 29, 2020, 8:10 PM

    @mrlowndes did u reply yes or no?

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    S 1 Reply Last reply Apr 29, 2020, 8:10 PM Reply Quote 0
    • S Offline
      sdetweil @sdetweil
      last edited by Apr 29, 2020, 8:10 PM

      @sdetweil run the fixuppm2 script from my site

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • M Offline
        mrlowndes
        last edited by Apr 29, 2020, 8:11 PM

        @sdetweil

        pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
        the log will be saved in /home/pi/MagicMirror/installers/pm2_setup.log
        npm ERR! Unexpected end of JSON input while parsing near '...s":{"moment-timezone"'
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /root/.npm/_logs/2020-04-29T20_09_52_853Z-debug.log
        bash: line 103: pm2: command not found
        bash: line 180: pm2: command not found
        bash: line 183: pm2: command not found
        
        S 1 Reply Last reply Apr 29, 2020, 8:13 PM Reply Quote 0
        • S Offline
          sdetweil @mrlowndes
          last edited by Apr 29, 2020, 8:13 PM

          @mrlowndes ok, lets do

          sudo npm purge -g pm2 
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 1
          • M Offline
            mrlowndes
            last edited by Apr 29, 2020, 8:16 PM

            I don’t think that worked. Tried to paste code but got flagged as spam

            S 1 Reply Last reply Apr 29, 2020, 8:17 PM Reply Quote 0
            • S Offline
              sdetweil @mrlowndes
              last edited by Apr 29, 2020, 8:17 PM

              @mrlowndes
              try

              sudo npm uninstall -g pm2 
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1
              • M Offline
                mrlowndes
                last edited by Apr 29, 2020, 8:19 PM

                @sdetweil ok done. Now should I try bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)" again?

                S 1 Reply Last reply Apr 29, 2020, 8:19 PM Reply Quote 0
                • S Offline
                  sdetweil @mrlowndes
                  last edited by Apr 29, 2020, 8:19 PM

                  @mrlowndes yes

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 1
                  • M Offline
                    mrlowndes
                    last edited by Apr 29, 2020, 8:23 PM

                    @sdetweil same result:

                    pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
                    
                    the log will be saved in /home/pi/MagicMirror/installers/pm2_setup.log
                    npm ERR! Unexpected end of JSON input while parsing near '...s":{"moment-timezone"'
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /root/.npm/_logs/2020-04-29T20_19_40_905Z-debug.log
                    bash: line 103: pm2: command not found
                    bash: line 180: pm2: command not found
                    bash: line 183: pm2: command not found
                    
                    S 1 Reply Last reply Apr 29, 2020, 8:27 PM Reply Quote 0
                    • S Offline
                      sdetweil @mrlowndes
                      last edited by Apr 29, 2020, 8:27 PM

                      @mrlowndes ok, time to get crazy , kill all npm stuff

                      /cd ~
                      sudo apt-get purge -y npm 
                      sudo rm -rf .npm
                      sudo apt-get install -y npm 
                      cd MagicMirror
                      rm -rf node_modules
                      npm install
                      

                      then do the fixuppm2 script again

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      2 / 5
                      • First post
                        11/46
                        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