Read the statement by Michael Teeuw here.
Mirror not working after upgrading to v2.7.0
-
after i upgraded to v2.7.0 i get the following errors after i start the mirror using “npm start”
and then black screen.
npm start
magicmirror@2.7.1 start /home/pi/MagicMirror
sh run-start.shStarting MagicMirror: v2.7.1
Loading config …
Loading module helpers …
No helper found for module: alert.
Initializing new module helper …
Module helper loaded: updatenotification
No helper found for module: clock.
Initializing new module helper …
Module helper loaded: calendar
Initializing new module helper …
Module helper loaded: MMM-ModuleScheduler
Initializing new module helper …
Module helper loaded: MMM-PIR-Sensor
No helper found for module: compliments.
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper …
Module helper loaded: MMM-NOAA3
Initializing new module helper …
Module helper loaded: MMM-SystemStats
Initializing new module helper …
Module helper loaded: MMM-AssistantMk2
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘./snowboy/lib/node/index.js’
Loading module helpers …
No helper found for module: alert.
Initializing new module helper …
Module helper loaded: updatenotification
No helper found for module: clock.
Initializing new module helper …
Module helper loaded: calendar
Initializing new module helper …
Module helper loaded: MMM-ModuleScheduler
Initializing new module helper …
Module helper loaded: MMM-PIR-Sensor
No helper found for module: compliments.
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper …
Module helper loaded: MMM-NOAA3
Initializing new module helper …
Module helper loaded: MMM-SystemStats
Initializing new module helper …
Module helper loaded: MMM-AssistantMk2
App threw an error during load
Error: Cannot find module ‘./snowboy/lib/node/index.js’
at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (internal/modules/cjs/loader.js:528:25)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:11:18)
at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:234:3)
at Module._compile (internal/modules/cjs/loader.js:711:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
Whoops! There was an uncaught exception…
{ Error: Cannot find module ‘./snowboy/lib/node/index.js’
at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (internal/modules/cjs/loader.js:528:25)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:11:18)
at Object. (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:234:3)
at Module._compile (internal/modules/cjs/loader.js:711:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
at Module.load (internal/modules/cjs/loader.js:620:32) code: ‘MODULE_NOT_FOUND’ }
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Launching application.
Shutting down server…
Stopping module helper: updatenotification
Stopping module helper: calendar
Stopping module helper: MMM-ModuleScheduler
Stopping module helper: MMM-PIR-Sensor
Stopping module helper: MMM-NOAA3
Stopping module helper: MMM-SystemStats
Stopping module helper: MMM-AssistantMk2
Stopping module helper: updatenotification
Stopping module helper: calendar
Stopping module helper: MMM-ModuleScheduler
Stopping module helper: MMM-PIR-Sensor
Stopping module helper: MMM-NOAA3
Stopping module helper: MMM-SystemStats
Stopping module helper: MMM-AssistantMk2 -
@icripps u need to run npm install.
And again in every module folder that has a package.json file -
@sdetweil after i did npm install i get the following:
npm install
magicmirror@2.7.1 install /home/pi/MagicMirror
cd vendor && npm installnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})audited 219 packages in 15.167s
found 5 vulnerabilities (4 low, 1 high)
runnpm audit fix
to fix them, ornpm audit
for detailsmagicmirror@2.7.1 postinstall /home/pi/MagicMirror
sh installers/postinstall/postinstall.sh && npm run install-fontsMagicMirror installation successful!
magicmirror@2.7.1 install-fonts /home/pi/MagicMirror
cd fonts && npm installaudited 1 package in 3.223s
found 0 vulnerabilitiesnpm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.audited 2440 packages in 76.299s
found 13 vulnerabilities (6 low, 6 moderate, 1 high)
runnpm audit fix
to fix them, ornpm audit
for details
pi@raspberrypi:~/MagicMirror $ ^C
pi@raspberrypi:~/MagicMirror $ npm audit fix
npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.updated 1 package in 48.461s
fixed 1 of 13 vulnerabilities in 2440 scanned packages
2 package updates for 12 vulns involved breaking changes
(usenpm audit fix --force
to install breaking changes; or refer tonpm audit
for steps to fix these manually)
pi@raspberrypi:~/MagicMirror $ npm installmagicmirror@2.7.1 install /home/pi/MagicMirror
cd vendor && npm installnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})audited 219 packages in 15.816s
found 5 vulnerabilities (4 low, 1 high)
runnpm audit fix
to fix them, ornpm audit
for detailsmagicmirror@2.7.1 postinstall /home/pi/MagicMirror
sh installers/postinstall/postinstall.sh && npm run install-fontsMagicMirror installation successful!
magicmirror@2.7.1 install-fonts /home/pi/MagicMirror
cd fonts && npm installaudited 1 package in 2.231s
found 0 vulnerabilitiesnpm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.audited 2440 packages in 78.438s
found 12 vulnerabilities (6 low, 5 moderate, 1 high)
runnpm audit fix
to fix them, ornpm audit
for details -
@icripps yeh, wish they hadn’t added the vulnerability checking.
So, move on to each module folder that gas a package.json and do it again.
Repeat
-
@sdetweil i tried npm install in each of the moudules directory but i get the same error about snowboy and AMK2 . i removed those modules from my config.js files and the mirror started without a problem.
do i have to remove the MMM-hotword and Amk2 and reinstall them?
-
@icripps for hotword there is a set of instructions in it’s readme about working thru this kind of problem.
Will work for amk2 as well.