Read the statement by Michael Teeuw here.
cannot install pm2
-
@sdetweil still nothing:
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 '...pes/node":"^12.7.5","' npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-04-29T21_00_10_606Z-debug.log bash: line 103: pm2: command not found bash: line 180: pm2: command not found bash: line 183: pm2: command not found
-
@mrlowndes said in cannot install pm2:
npm ERR! Unexpected end of JSON input while parsing near '…pes/node":"^12.7.
u are getting weird failures…
every time we have seen this, it is the SD card failing.
-
hmm good question.
-
@sdetweil should be fine its a SanDisk Ultra Plus 64GB U1 SDXC
-
@sdetweil if it is the SD card, is it the kind of thing a deep format and reinstall of Raspbian will fix, or is the SD just terminally bad? Wen I reinstalled Raspbian the last time, I did just do a quick format on this card before flashing the image.
-
@mrlowndes when the sd card starts to fail, it is toast
-
@sdetweil bummer - it’s brand new out of the box. Just managed to scrounge another from my GoPro. Ill format that, reflash Raspbian and see how I go. I’ll just use your script first off, rather than doing a manual install. I’ll let you know how I get on, on here but it will take me a long time with all the updates that Raspbian does. Thanks so much for your help.
-
@mrlowndes ok, will be around…
-
someone else just reported a similar failure on a pi 0.
so, I reflashed my sd card with buster and ran the installer without any issues on a pi 0w
-
I ran your script and it didn’t finish - Unable to install dependencies! Also, this website has locked me out of singing into my account from my pi…