MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

MMM-Hotword problem with Black Screen



  • Hi, I’ve instaled MMM-AssistantMk2 and it seems to be working fine. I had a problem with blackscreen on that but used this post from a couple days ago to fix it.
    Now I’ve installed MMM-Hotword and am getting a black screen when i try to start my mirror with it configured. I believe snowboy is not installing, there isn’t a folder for it in “node_modules” (which, from my reading, I think there is supposed to be). I’ve run the “save snowboy” command a bunch of times but get the same errors every time.

    Any help would be appreciated.

    –edit-- I just realized i posted this in the main troubleshooting forum instead of the module troubleshooting. Should i delete and repost? Or can the Mods move it?

    pi@raspberrypi:~/MagicMirror/modules/MMM-Hotword $ npm install --save snowboy
    npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
    
    > snowboy@1.3.1 install /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
    > node-pre-gyp install --fallback-to-build
    
    node-pre-gyp ERR! Tried to download(403): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-arm.tar.gz 
    node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.3.1 and node@10.11.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
    node-pre-gyp ERR! Tried to download(undefined): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-arm.tar.gz 
    node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.3.1 and node@10.11.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
    internal/modules/cjs/loader.js:583
        throw err;
        ^
    
    Error: Cannot find module 'nan'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
        at Function.Module._load (internal/modules/cjs/loader.js:507:25)
        at Module.require (internal/modules/cjs/loader.js:637:17)
        at require (internal/modules/cjs/helpers.js:20:18)
        at [eval]:1:1
        at Script.runInThisContext (vm.js:96:20)
        at Object.runInThisContext (vm.js:303:38)
        at Object. ([eval]-wrapper:6:22)
        at Module._compile (internal/modules/cjs/loader.js:689:30)
        at evalScript (internal/bootstrap/node.js:576:27)
    gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
    internal/modules/cjs/loader.js:583
        throw err;
        ^
    
    Error: Cannot find module 'nan'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
        at Function.Module._load (internal/modules/cjs/loader.js:507:25)
        at Module.require (internal/modules/cjs/loader.js:637:17)
        at require (internal/modules/cjs/helpers.js:20:18)
        at [eval]:1:1
        at Script.runInThisContext (vm.js:96:20)
        at Object.runInThisContext (vm.js:303:38)
        at Object. ([eval]-wrapper:6:22)
        at Module._compile (internal/modules/cjs/loader.js:689:30)
        at evalScript (internal/bootstrap/node.js:576:27)
    gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
    gypgyp ERR!  configure error 
    ERR! configure error 
    gyp ERR! gypstack Error: `gyp` failed with exit code: 1
    gyp  ERR!ERR!  stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
    stackgyp Error: `gyp` failed with exit code: 1
     gypERR!  stackERR!     at ChildProcess.emit (events.js:182:13)
     stackgyp     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
     ERR!gyp  stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
    ERR! stack     at ChildProcess.emit (events.js:182:13)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
    gyp ERR! System Linux 4.14.50-v7+
    gyp ERR! Systemgyp Linux 4.14.50-v7+
     ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node" "--module_name=snowboy" "--module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm"
    gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
    gyp gypERR! node -v  v10.11.0
    ERR! gypcommand  "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node" "--module_name=snowboy" "--module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm"
    ERR! node-gyp -v v3.8.0
    gyp ERR! not okgyp 
     ERR! cwd /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
    gyp ERR! node -v v10.11.0
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok 
    node-pre-gyp ERR! build error 
    node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm' (1)
    node-pre-gyp ERR! stack     at ChildProcess. (/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
    node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
    node-pre-gyp ERR! System Linux 4.14.50-v7+
    node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
    node-pre-gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
    node-pre-gyp ERR! node -v v10.11.0
    node-pre-gyp ERR! node-pre-gyp -v v0.6.39
    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 configure --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm' (1)
    npm WARN MMM-Hotword@1.0.0 No repository field.
    
    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/2018-10-21T03_32_36_367Z-debug.log
    


  • I’m going to call this solved, kinda. I restarted from scratch and got it to work. Snowboy was not installing for some reason. Possibly my raspbian was not up to date. But we’ll never know.