Read the statement by Michael Teeuw here.
cannot install pm2
-
@mrlowndes not in MagicMirror…
did u try to install MagicMirror manually ?
do node -v and npm -v
what OS is this
show results of lsb_release -a
-
@sdetweil yes, manual install of MM
pi@raspberrypi:~ $ node -v v10.20.1 pi@raspberrypi:~ $ npm -v 6.14.4
how do I show results of lsb_release -a?
-
@mrlowndes lsb_release -a
same way you did results of npm -v
on my desktop i see
(base) sam@sams:~/MagicMirror$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic
do this
sudo apt-get purge -y npm
then
rm -rf ~/MagicMirror
and then run my installer script from here
https://github.com/sdetweil/MagicMirror_scripts
read the readme for the command to issueit will ask to install pm2 and disable screen saver
if you don’t, then I have extra scripts to do those
-
@sdetweil ok I’ll give that a go. In the meantime:
pi@raspberrypi:~ $ sudo npm install -g pm2 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-29T18_49_06_787Z-debug.log
and
pi@raspberrypi:~/MagicMirror $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
-
@mrlowndes so, I asked you to uninstall npm
sudo apt-get purge -y npm
-
@sdetweil yes, stand by…
-
@sdetweil purged npm, now running your installer script…updating packages…I’m on a 2Mb/s internet connection…
-
We're ready! Run pm2 start MagicMirror from the ~/MagicMirror directory to start your MagicMirror. pi@raspberrypi:~ $ cd MagicMirror pi@raspberrypi:~/MagicMirror $ pm2 start MagicMirror bash: pm2: command not found pi@raspberrypi:~/MagicMirror $
-
@sdetweil looks like pm2 was not installed:
Splashscreen: Changed theme to MagicMirror successfully. Do you want use pm2 for auto starting of your MagicMirror (y/N)?y install and setup pm2 bash: line 442: pm2: command not found bash: line 518: pm2: command not found bash: line 521: pm2: command not found Do you want to disable the screen saver? (y/N)?y
-
@mrlowndes did u reply yes or no?