Read the statement by Michael Teeuw here.
MMM Awesome Alexa installing snowboy.
-
I’m having the following issue/error after running this command “npm install” trying to install snowboy.
If anyone has found solutions to this error, please please PLEASE let me know.node-pre-gyp ERR! stack at ChildProcess. (/home/pi/MagicMirror/node_modules/snowboy/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 5.4.51-v7l+
node-pre-gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/node_modules/snowboy/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR! cwd /home/pi/MagicMirror/node_modules/snowboy
node-pre-gyp ERR! node -v v10.22.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/MagicMirror/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/MagicMirror/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64’ (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! snowboy@1.3.1 install:node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the snowboy@1.3.1 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/2020-09-11T13_22_25_913Z-debug.log -
@Ameyalgudkar there is a multi-step procedure in the AwesomeAlexa README.md file for install, you have to follow that
-
@sdetweil I did follow all the steps, and now I am getting stuck at this npm install step for installing dependencies. namely “snowboy” which is required for the hotword recognition.
-
@Ameyalgudkar these steps, right?
https://awesome-alexa.js.org/#/installation,
Step 2. Install Module

-
@sdetweil yes those steps.
The one I am referring to is 4th to last. -
@Ameyalgudkar said in MMM Awesome Alexa installing snowboy.:
5.4.51-v7l+
are u trying to install on 64bit RaspiOS?
my PI’s are running kernel 4.19 on 32bit raspiOS
-
@sdetweil I believe I’m on 5.4.51 kernel but not sure if that’s the one. and don’t know if 32/64 bit.
-
@Ameyalgudkar no idea if it will work
-
there.
and if there’s a way to run it on 4.19 then how do I downgrade? -
@Ameyalgudkar no idea… i see the latest images are all at kernel 5.4
-
@sdetweil If you could make a copy of your image file or if you have it saved on your disk maybe?
could you upload it to google cloud or something? -
@Ameyalgudkar see the chat messages I sent you
-
I confirm new update of RPI are now in 5.4.x kernel
bugs@debian:~/MagicMirror/modules$ ssh pi@192.168.X.XX pi@192.168.X.XX's password: Linux Raspberry 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7lI have not see :)
my npm library can make the build of @bugsounet/snowboypi@Raspberry:~/MagicMirror/modules/MMM-Spotify $ npm install @bugsounet/snowboy npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported > @bugsounet/snowboy@1.6.2 install /home/pi/MagicMirror/modules/MMM-Spotify/node_modules/@bugsounet/snowboy > bash scripts/installer.sh make : on entre dans le répertoire « /home/pi/MagicMirror/modules/MMM-Test-Blank/node_modules/@bugsounet/snowboy/build » CXX(target) Release/obj.target/snowboy/lib/snowboy.o SOLINK_MODULE(target) Release/obj.target/snowboy.node COPY Release/snowboy.node COPY /home/pi/MagicMirror/modules/MMM-Test-Blank/node_modules/@bugsounet/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node TOUCH Release/obj.target/action_after_build.stamp make : on quitte le répertoire « /home/pi/MagicMirror/modules/MMM-Test-Blank/node_modules/@bugsounet/snowboy/build » [@bugsounet/snowboy] Do you want to execute electron rebuild ? [Y/n] Your choice: y ✔ Rebuild Complete > @bugsounet/snowboy@1.6.2 postinstall /home/pi/MagicMirror/modules/MMM-Test-Blank/node_modules/@bugsounet/snowboy > tsc -p tsconfig.json + @bugsounet/snowboy@1.6.2 added 187 packages from 137 contributors and audited 190 packages in 107.058s 4 packages are looking for funding run `npm fund` for details found 0 vulnerabilitiesafter official version, i don’t know…
it’s always been a bit boring to do a build correctly…@Ameyalgudkar:
I see in the error log it’s an x64 build…In MagicMirror requirement it’s specified to download the lasted version of raspbian with desktop
The official website is https://www.raspberrypi.org/ and on the download page there no x64 version
So you use a beta version with …betabugs and Complex Module of MagicMirror don’t support x64 version.Best way ?
Like windows and others OS you can’t transform x64 to 32bits (and 32bits to x64 too)
so best way is reinstall OS with 32bits version -
@Bugsounet he is doing on pi, System Linux 5.4.51-v7l+ < — v7l
i am going to test ubuntu pi 64 bit tomorrow.
couldn’t wait…
fix
need to install libcblas
sudo apt-get install libatlas-base-devthen both my installations using snowboy correctly rebuilt… on ubuntu 64 on pi4.
-
ah… that’s why my library have no problem for installing :)
I force it to install with installer lol :)nedeed dependencies
-
@Bugsounet said in MMM Awesome Alexa installing snowboy.:
@Ameyalgudkar:
I see in the error log it’s an x64 build…
so best way is reinstall OS with 32bits versionI am indeed running the 32bit Raspberry Pi OS latest from the official downloads, and not any beta versions.
I don’t know why the installer is running it in x64. -
Also now I am facing this problem where, no matter what I do, RPI4 does not take any other sd card boot image and boot that particular system.
For instance, My 32gb with working MM and RPI OS 32bit, boot up without any problem.
But then, I tried booting with a older build of RPI OS, Ubuntu(https://ubuntu.com/download/raspberry-pi) 32bit for Pi4.Both tried on different sd cards with 8gb/32gb and also reformatting it several times and everything.
I feel just so exhausted doing all this and thinking of returning my RPI4 if it has so may issues.
-
internal firmware :) (eeprom)
-
@Bugsounet doesn’t the newer system apply the firmware update automatically?
see here for the firmware test and update procedure
https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md -
@sdetweil I tried the boot recovery mentioned in the link, but no luck with that. Still gets stuck in boot and with a red light. no green light. should I try to get a replacement for my device?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
