Read the statement by Michael Teeuw here.
MMM-Hotword causing Mirror to blackout
-
@budddesilva said in MMM-Hotword causing Mirror to blackout:
Error: Cannot find module ‘snowboy’
This says you didn’t (or failed)
npm install
of modules.snowboy
is included inMMM-Hotword
and you havn’t installed it completely. Was there any suspicious error when you installMMM-Hotword
? -
Ok. These are the steps I took.
- Removed the MMM-AssistantMk2/node_modules folder.
- npm install in the MMM-AssistantMk2 folder
cd ~/MagicMirror/modules/MMM-AssistantMk2
npm install --save-dev electron-rebuild
npm install nan - Received the following error
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Failed to load gRPC binary module because it was not installed for the current system Expected directory: electron-v2.0-linux-arm-glibc Found: [node-v67-linux-arm-glibc] This problem can often be fixed by running "npm rebuild" on the current system Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node'
- Ran the npm rebuild command in the MMM-AssistantMk2 folder
- Still the same error as before.
- Ran the npm rebuild command in the MMM-AssistantMk2 > node_modules folder
- Still the same error as before.
What do you think @sdetweil ?
-
sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essentials sudo apt-get install gcc-5
do this first.
Then,
sudo apt-get install libasound2-dev sox libsox-fmt-all
Then,
cd ~/MagicMirror/modules/MMM-AssistantMk2 npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuild
I wish you have a luck. Happy holidays.
-
Hi @Sean
Thank you for your input. I ran through all the commands you gave without any problems. Had to change the “essentials” to “essential”.
But, now I get the previous error I had received.WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘snowboy’.
-
@budddesilva
That is another issue. snowboy is related with MMM-Hotword, and that error says you didn’t or failed proper installation of that module. Read the instructions of installation.