Read the statement by Michael Teeuw here.
Cannot find module './snowboy/lib/node/index.js'
-
After installing MagicMirror and google assistant, I get this error and the screen is blank. it does not display anything
Please help. I am doing this for my school project. Thank you.magicmirror@2.9.0 start /home/pi/MagicMirror
sh run-start.shStarting MagicMirror: v2.9.0
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
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: newsfeed
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
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: newsfeed
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: newsfeed
Stopping module helper: updatenotification
Stopping module helper: calendar
Stopping module helper: newsfeed -
did you mak a copy of the original config file? if you us that one wnat happens?
-
@AliensExist
You probably made a mistake with installing MMM-Hotword. Did you follow the installation instruction on github repository? -
@Sean Yes, I installed the MMM-Hotword properly, without any mistakes. I have had this problem for a week now, so I decided to start fresh and do everything again (installing the MagicMirror and everything), I did everything over again three times, but I still have the same problem.
-
@AliensExist
But the error log says your installation was not completed.
Check whether the file and folder exist.cd ~/MagicMirror/modules/MMM-Hotword ls ./snowboy/lib/node/index.js
It should return
./snowboy/lib/node/index.js
. If not, your installation was failed for some reason. -
@Sean thank you for your replay.
Yes, you are right. There is problem with he installation. ./snowboy/lib/node/index.js does not shuow up.
I’ll try installing it again the fourth time. Lets see how it goes. Thank you again
I’ll update here on how it goes. -
@Sean Ok, so i was able to fix it by re-installing everything again. But now after I run the command ‘npm start’ the mirror starts for 1 sec or 2, and then closes by itself. I am not sure what the problem here is. I tried debugging with ‘npm start dev’ but it crashes after 2 seconds.
This is everything after I run the command ‘npm start’ (if it helps)
pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.9.0 start /home/pi/MagicMirror
sh run-start.shStarting MagicMirror: v2.9.0
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
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: newsfeed
Initializing new module helper …
Module helper loaded: MMM-Hotword
Initializing new module helper …
Module helper loaded: MMM-AssistantMk2
All module helpers loaded.
Starting server on port 8080 …
Server started …
Connecting socket for: updatenotification
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: newsfeed
Starting module: newsfeed
Connecting socket for: MMM-Hotword
[HOTWORD] MMM-Hotword starts
Connecting socket for: MMM-AssistantMk2
Sockets connected & modules started …
Launching application.
Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[AMK2] Recipe is loaded: hide_and_show_all_modules.js
[AMK2] Recipe is loaded: reboot.js
[AMK2] Recipe is loaded: screen_onoff.js
[AMK2] Recipe is loaded: shutdown.js
[AMK2] Temporal storage directory is clearing.
[HOTWORD] No model to load
[AMK2] assistant ready
/home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node: undefined symbol: __atomic_store_8
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! magicmirror@2.9.0 start:sh run-start.sh
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the magicmirror@2.9.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-11-15T21_50_03_527Z-debug.log -
@AliensExist see this post for the instructions on how to fix this problem
https://forum.magicmirror.builders/topic/11430/error-when-trying-to-run-mmm-assistantmk2/5