• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

[MMM-awesome-alexa] Problems snowboy1.2.0

Scheduled Pinned Locked Moved Unsolved Troubleshooting
4 Posts 2 Posters 1.6k Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    Feldker
    last edited by Jan 10, 2019, 9:02 PM

    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

    1 Reply Last reply Reply Quote 0
    • B Offline
      bhepler Module Developer
      last edited by Jan 11, 2019, 1:59 AM

      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.

      F 1 Reply Last reply Jan 17, 2019, 11:06 AM Reply Quote 0
      • F Offline
        Feldker @bhepler
        last edited by Jan 17, 2019, 11:06 AM

        @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
        
        
        1 Reply Last reply Reply Quote 0
        • B Offline
          bhepler Module Developer
          last edited by bhepler Jan 17, 2019, 2:27 PM Jan 17, 2019, 2:26 PM

          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.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy