Error installing the magicmirror



  • 
    691 verbose lifecycle electron@1.6.8~postinstall: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/pi/MagicMirror/node_modules/electron/node_modules/.bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
    692 verbose lifecycle electron@1.6.8~postinstall: CWD: /home/pi/MagicMirror/node_modules/electron
    693 silly lifecycle electron@1.6.8~postinstall: Args: [ '-c', 'node install.js' ]
    694 silly lifecycle electron@1.6.8~postinstall: Returned: code: 1  signal: null
    695 info lifecycle electron@1.6.8~postinstall: Failed to exec postinstall script
    696 verbose unlock done using /home/pi/.npm/_locks/staging-f4a655787a5bf4d3.lock for /home/pi/MagicMirror/node_modules/.staging
    697 silly rollbackFailedOptional Starting
    698 silly rollbackFailedOptional Finishing
    699 silly runTopLevelLifecycles Finishing
    700 silly install printInstalled
    701 warn grunt-stylelint@0.8.0 requires a peer of stylelint@^7.8.0 but none was installed.
    702 verbose If you need help, you may report this error at:
    702 verbose     
    703 warn stylelint-config-standard@16.0.0 requires a peer of stylelint@^7.8.0 but none was installed.
    704 verbose If you need help, you may report this error at:
    704 verbose     
    705 verbose stack Error: electron@1.6.8 postinstall: `node install.js`
    705 verbose stack Exit status 1
    705 verbose stack     at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
    705 verbose stack     at emitTwo (events.js:106:13)
    705 verbose stack     at EventEmitter.emit (events.js:191:7)
    705 verbose stack     at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
    705 verbose stack     at emitTwo (events.js:106:13)
    705 verbose stack     at ChildProcess.emit (events.js:191:7)
    705 verbose stack     at maybeClose (internal/child_process.js:886:16)
    705 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
    706 verbose pkgid electron@1.6.8
    707 verbose cwd /home/pi/MagicMirror
    708 error Linux 4.4.21-v7+
    709 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "electron"
    710 error node v6.10.3
    711 error npm  v3.10.10
    712 error code ELIFECYCLE
    713 error electron@1.6.8 postinstall: `node install.js`
    713 error Exit status 1
    714 error Failed at the electron@1.6.8 postinstall script 'node install.js'.
    714 error Make sure you have the latest version of node.js and npm installed.
    714 error If you do, this is most likely a problem with the electron package,
    714 error not with npm itself.
    714 error Tell the author that this fails on your system:
    714 error     node install.js
    714 error You can get information on how to open an issue for this project with:
    714 error     npm bugs electron
    714 error Or if that isn't available, you can get their info via:
    714 error     npm owner ls electron
    714 error There is likely additional logging output above.
    715 verbose exit [ 1, true ]
    
    

    Having error installing the magic mirror and getting it to run… some help would greatly be appreciated!

    Thanks!



  • @jubeenshah said in Error installing the magicmirror:

    Failed at the electron

    @Jakllo
    I initially had that problem too - you need to be logged in as PI - not root.
    I’d suggest starting all over: it really wont take that long. Follow the
    tutorial @strawberry-3-141 mentioned (https://forum.magicmirror.builders/topic/236/complete-setup-tutorial) to the letter. It was written by @KirAsh4 & made all of my problem go away. I have now done it 4 times, getting it done in less than an hour from unpacking to having it all run!

    My raspberry all of a sudden even connected via WiFi, and I am expecting my hair to grow back any day now.

    I’m telling you - pure magic, these guys.

    All the best



  • @cowboysdude Thanks a lot! I’ll try that and let you know about how it turns about!



  • @cowboysdude I tried again following the steps… but then in the end it again showed me errors regarding installing dependencies…

    I believe two in particular…

    npm WARN prefer global coffee-script@1.10.0 should be installed with -g
    npm WARN prefer global jsonlite@1.6.2 should be installed with -g
    > electron-chromedriver@1.7.1 install/jome/pi/MagicMirror/node_modules/electron-chromedriver
    > node ./download-chromedriver.js
    


  • @cowboysdude

    > magicmirror@2.1.1 start /home/pi/MagicMirror
    > sh run-start.sh
    
    /home/pi/MagicMirror/node_modules/electron/index.js:9
      throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
      ^
    
    Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
        at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
        at Module._compile (module.js:570:32)
        at Object.Module._extensions..js (module.js:579:10)
        at Module.load (module.js:487:32)
        at tryModuleLoad (module.js:446:12)
        at Function.Module._load (module.js:438:3)
        at Module.require (module.js:497:17)
        at require (internal/module.js:20:19)
        at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
        at Module._compile (module.js:570:32)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! magicmirror@2.1.1 start: `sh run-start.sh`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.1.1 start 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/2017-05-18T13_11_39_986Z-debug.log
    


  • @cowboysdude Nevermind bro… I solved it on my own and it worked out… Thanksss a lot brother



  • @jubeenshah Glad you got it.


  • Module Developer

    @jubeenshah said in Error installing the magicmirror:

    I solved it on my own and it worked out…

    Perhaps you’ll post how you solved the issue so others might benefit if they have the same issue. :-)


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.