Read the statement by Michael Teeuw here.
Error when trying to run MMM-AssistantMk2
-
Well. I’m not sure because, someone still has this issue despite my instruction in github. But I tested and got success today. So I hope this working for you.
Reason
grpc
(which is an essential program to use Google Assistant SDK) installed bynpm install
in the shell is not compatible withelectron
ofMagicMirror
on runtime. Becauseelectron
has its own JS engine and it is different with your global level environments. That is why rebuild ofgrpc
forelectron
is needed.- Unfortunately, some last new
grpc
versions might have some bug on rebuilding for specificelectron
. As far as I know,grpc@1.24.0
has one, andgrpc@1.24.1
has also (grpc team says it was fixed, but I found another bug on 1.24.1)
Solution
InRaspbian Buster / RPI 4B+
I’ve tested.- Check your
gcc
version. If > = 8, downgrade it to 7.
sudo apt-get install gcc-7 gcc -v
It should say
gcc version 7.3.0 (Raspbian 7.30-19)
or something similar ( < = 7 )
If not done well, google it how to downgrade yourgcc
.- then do this; (I’ll assume you’ve already tried
npm install
on your previous installation step)
cd ~/MagicMirror/modules/MMM-AssistantMk2 npm install grpc@1.23.4 npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuild
It will take 30 minutes ~ 1 hour. Don’t power off or stop it.
If not done well… Sorry, I cannot help.
At this moment, this is one and only way to work properly.
In my RPI4B+(Raspbian) / Mac (Catalina) / Jetson Nano (Ubuntu 18.04) / Khadas Edge-V (Armbian Buster) / Asus Tinkerboard (TinkerOS), worked today. -
Issue solved here: https://github.com/eouia/MMM-AssistantMk2/issues/231
-
@sean please help me still am getting this error i hope you will give the solution
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! @bugsounet/snowboy@2.0.5 install:bash scripts/installer.sh
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the @bugsounet/snowboy@2.0.5 install 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/2021-02-10T11_13_15_758Z-debug.log -
@chethan snowboy 2.5 is very old. this module (mk2) has been abandonded, and replaced by MMM-GoogleAssistant, whos author has left the forum.
-
-
@chethan i do not have an answer
mk2 will not work
mmm-googleassistant may not work due to snowboy issues. snowboy has also been abandonded