Read the statement by Michael Teeuw here.
Cannot find module './snowboy/lib/node/index.js'
-
@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