A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
cannot install pm2
-
@mrlowndes ok, lets do
sudo npm purge -g pm2
-
I don’t think that worked. Tried to paste code but got flagged as spam
-
@mrlowndes
trysudo npm uninstall -g pm2
-
@sdetweil ok done. Now should I try
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
again? -
@mrlowndes yes
-
@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
-
@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
-
@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.