Read the statement by Michael Teeuw here.
After update 2.23.0 crash
-
@JerryP Always use Sam’s update script. I used it last night and updated from 2.21.0 to 2.23.0 no issues. Often modules with a package.json requires an npm install in that folder and the upgrade script takes care of all of that.
-
@Wenike do this
from a terminal window
ps -ef | grep node
this will show you the node processes running and parms to what they are running (file path)
if all looks understandable and u can’t terminate them thru app shutdown (pm2 stop all will stop all.managed apps, mm included), do
ps -ef | grep node | awk '{ print $2 }' | xargs kill -9
this will hard kill all the node processes
-
the script does a new npm install in modules that have a package.json
but I know the post install process is wrong for this module
my fork fixes that
https://github.com/sdetweil/MMM-PIR-Sensor -
@sdetweil Perfect, fixed it. Thanks!
-
@JerryP said in After update 2.23.0 crash:
sudo git pull
just one more thing
NEVER use sudo with MM no need for it.
all it does is lead to trouble -
@sdetweil Thank you very much. Had the same error (cannot find module envsub) on updating the MagicMirror to the new version and this step (rm -rf node_modules and then npm install again) solved the issue for me.
-
@hrjmsh you should use my upgrade script
-
@sdetweil I did, both with and without changes applied. Unfortunately, it didn’t work for me. The only thing that worked was the solution you provided by removing the node_modules and then reinstalling npm.
-
@hrjmsh can u send me the MagicMirror/installers/upgrade.log
same userid at gmail
never seen this problem
-
@hrjmsh Thank you so much!!! (rm -rf node_modules and then npm install again) worked like a charm!