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

[MMM-awesome-alexa] Problems snowboy1.2.0



  • Hey,

    i habe some problems during the installation,
    here are the logs.

    pi@raspberrypi:~/MagicMirror/modules/MMM-awesome-alexa $ sudo npm install --only=prod

    snowboy@1.2.0 preinstall /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
    npm install node-pre-gyp

    npm ERR! path /root/.npm/_logs
    npm ERR! code EACCES
    npm ERR! errno -13
    npm ERR! syscall scandir
    npm ERR! Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’
    npm ERR! { [Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’]
    npm ERR! stack:
    npm ERR! “Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’”,
    npm ERR! errno: -13,
    npm ERR! code: ‘EACCES’,
    npm ERR! syscall: ‘scandir’,
    npm ERR! path: ‘/root/.npm/_logs’ }
    npm ERR!
    npm ERR! The operation was rejected by your operating system.
    npm ERR! It is likely you do not have the permissions to access this file as the current user
    npm ERR!
    npm ERR! If you believe this might be a permissions issue, please double-check the
    npm ERR! permissions of the file and its containing directories, or try running
    npm ERR! the command again as root/Administrator (though this is not recommended).
    glob error { [Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’]
    stack:
    “Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’”,
    errno: -13,
    code: ‘EACCES’,
    syscall: ‘scandir’,
    path: ‘/root/.npm/_logs’ }
    npm ERR! path /root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f
    npm ERR! code EACCES
    npm ERR! errno -13
    npm ERR! syscall open
    npm ERR! Error: EACCES: permission denied, open ‘/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f’
    npm ERR! { [Error: EACCES: permission denied, open ‘/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f’]
    npm ERR! cause:
    npm ERR! { Error: EACCES: permission denied, open ‘/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f’
    npm ERR! errno: -13,
    npm ERR! code: ‘EACCES’,
    npm ERR! syscall: ‘open’,
    npm ERR! path:
    npm ERR! ‘/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f’ },
    npm ERR! isOperational: true,
    npm ERR! stack:
    npm ERR! “Error: EACCES: permission denied, open ‘/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f’”,
    npm ERR! errno: -13,
    npm ERR! code: ‘EACCES’,
    npm ERR! syscall: ‘open’,
    npm ERR! path:
    npm ERR! ‘/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f’ }
    npm ERR!
    npm ERR! The operation was rejected by your operating system.
    npm ERR! It is likely you do not have the permissions to access this file as the current user
    npm ERR!
    npm ERR! If you believe this might be a permissions issue, please double-check the
    npm ERR! permissions of the file and its containing directories, or try running
    npm ERR! the command again as root/Administrator (though this is not recommended).
    npm ERR! code ELIFECYCLE
    npm ERR! errno 243
    npm ERR! snowboy@1.2.0 preinstall: npm install node-pre-gyp
    npm ERR! Exit status 243
    npm ERR!
    npm ERR! Failed at the snowboy@1.2.0 preinstall 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! /root/.npm/_logs/2019-01-10T20_55_36_481Z-debug.log


  • Project Sponsor

    I don’t think you need to use sudo to run the npm install routine. Looking at your error logs (and you really should be using the Markdown features), I would guess that you used the sudo command to clone the module.

    My suggestion is to delete the MMM-Awesome-Alexa folder and then follow the steps on the installation page.



  • @bhepler : Tanks for your help. I have completely reinstalled it.
    Then it works.
    But i have a new Problem.

    > mmm-awesome-alexa@1.0.0 electron-rebuild /home/pi/MagicMirror/modules/MMM-awesome-alexa
    > electron-rebuild --pre-gyp-fix
    
    ✖ Rebuild Failed
    An unhandled error occurred inside electron-rebuild
    Could not detect abi for version 2.0.16 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
    
    Error: Could not detect abi for version 2.0.16 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
        at Object.getAbi (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/node-abi/index.js:43:9)
        at _callee6$ (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/lib/rebuild.js:152:37)
        at tryCatch (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/node_modules/regenerator-runtime/runtime.js:63:40)
        at Generator.invoke [as _invoke] (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/node_modules/regenerator-runtime/runtime.js:337:22)
        at Generator.prototype.(anonymous function) [as next] (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/node_modules/regenerator-runtime/runtime.js:96:21)
        at Generator.tryCatcher (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/bluebird/js/release/util.js:16:23)
        at PromiseSpawn._promiseFulfilled (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/bluebird/js/release/generators.js:97:49)
        at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/bluebird/js/release/generators.js:201:15
        at _rebuild (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/lib/rebuild.js:613:18)
        at rebuild (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/lib/rebuild.js:624:28)
        at _callee$ (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/lib/cli.js:160:45)
        at tryCatch (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/node_modules/regenerator-runtime/runtime.js:63:40)
        at Generator.invoke [as _invoke] (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/node_modules/regenerator-runtime/runtime.js:337:22)
        at Generator.prototype.(anonymous function) [as next] (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/electron-rebuild/node_modules/regenerator-runtime/runtime.js:96:21)
        at Generator.tryCatcher (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/bluebird/js/release/util.js:16:23)
        at PromiseSpawn._promiseFulfilled (/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/bluebird/js/release/generators.js:97:49)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 255
    npm ERR! mmm-awesome-alexa@1.0.0 electron-rebuild: `electron-rebuild --pre-gyp-fix`
    npm ERR! Exit status 255
    npm ERR!
    npm ERR! Failed at the mmm-awesome-alexa@1.0.0 electron-rebuild 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/2019-01-14T18_21_44_749Z-debug.log
    
    

  • Project Sponsor

    My quick research indicates that there is a mismatch between the version of Electron and the abi. You can try this:

    npm update node-abi
    npm install
    

    Let me know how it goes. And thanks for using the Markdown.