Read the statement by Michael Teeuw here.
Updated MM2 - Local Host Refused Connection Error
-
Re: Should I update?
I just updated and I get a “Connection Refused message” when I launch MM2 .
Here is the output from when I use npm start.
pi@MagicMirror:~/MagicMirror/config $ npm start
magicmirror@2.21.0 start
./run-start.sh $1node:internal/modules/cjs/loader:959
throw err;
^Error: Cannot find module ‘module-alias/register’
Require stack:- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/serveronly/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/pi/MagicMirror/js/app.js:9:1)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/pi/MagicMirror/js/app.js’,
‘/home/pi/MagicMirror/serveronly/index.js’
]
}
Starting chromium browser now, have patience, it takes a minute
–disable-quic --enable-tcp-fast-open --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version=
-
@BD0G said in Updated and MM2 no longer launches:
‘module-alias/register’
I used this update process https://github.com/sdetweil/MagicMirror_scripts
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” apply
Also updated npm to latest version
-
@BD0G can u show me the MagicMirror/installers/upgrade.log
you installed npm?
the script would have upgraded npm if needed
is this a pi 0w? (as it is usuing run-start)
-
@sdetweil Thank you Very Much for the reply.
You have always been helpful with issues!
I ended up running git pull && npm install --only=prod --omit=devFrom https://docs.magicmirror.builders/getting-started/upgrade-guide.html
It allows MM to launch. Appears to be reloading / relaunching periodically though.
-
-
@sdetweil Thanks I’ll get right on it!
Sent …