Read the statement by Michael Teeuw here.
build MMM-AssistantMk2 Rebuild Failed
-
@marion001 see the issue here
https://github.com/grpc/grpc-node/issues/1057
need to downlevel gprc
do
cd ~/MagicMirror npm uninstall gprc npm install gpc@1.23.3 npm install maybe electron-rebuild
-
thank you! I have followed you to downgrade grpc to version 1.23.3 and build successfully
cd ~/MagicMirror/modules
sudo rm -rf MMM-AssistantMk2/
git clone https://github.com/eouia/MMM-AssistantMk2.git
cd MMM-AssistantMk2
sudo npm uninstall grpc
sudo npm install sudo npm install grpc@1.23.3
sudo npm install --save-dev electron-rebuild
sudo npm install
sudo ./node_modules/.bin/electron-rebuild -
@marion001 great… but you should NOT use sudo
so, can u fix the sudo problem, so u don’t use sudo anymore
~/MagicMirror sudo chown -R ???? ~/.npm sudo chown -R ???? ./
where ??? is the current userid , most likely pi
but you can get the userid from the commandwhoami
-
I installed the magicmirror on androibox which has flash room armbian, I installed on the user should use sudo for full rights
pi@MagicMirror: ~ $ id
uid = 1000 (pi) gid = 1000 (pi) groups = 1000 (pi), 5 (tty), 6 (disk), 20 (dialout), 27 (sudo), 29 (audio), 44 (video), 46 (plugdev), 60 (games), 100 (users), 101 (systemd-journal), 104 (input), 108 (netdev), 111 (ssh), 112 (bluetooth)pi@MagicMirror: ~ $ whoami
pipi@MagicMirror:~$ uname -a
Linux MagicMirror 5.1.15-aml-s905 #5.91 SMP PREEMPT Wed Jul 10 15:44:57 MSK 2019 aarch64 aarch64 aarch64 GNU/Linux -
@marion001 said in build MMM-AssistantMk2 Rebuild Failed:
I installed on the user should use sudo for full rights
but the user pi doesn’t need root to run MagicMirror
next time you install a module, and don’t use sudo, things will break…best to fix it now…
-
Yes, I’ll fix it next time, thank you. (Y)
-
@marion001 cool… can u mark this issue resolved? 3 dots to the right of the message
-
@marion001 Uhhhhhh… I followed your steps to rebuild the thing in order for the module to work, but now it’s stuck at ‘Building module: grpc, Completed: 0’, and stays like that forever until I cancel the procedure with Ctrl+C. How can I resolve this? I really want Google Assistant to work but this is a hindrance that I want to remove.
-
@marion001 Uhhhhhh… I followed your steps to rebuild the thing in order for the module to work, but now it’s stuck at ‘Building module: grpc, Completed: 0’, and stays like that forever until I cancel the procedure with Ctrl+C. How can I resolve this? I really want Google Assistant to work but this is a hindrance that I want to remove.