• 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.

Error Installing Dependecies

Scheduled Pinned Locked Moved Unsolved Troubleshooting
installing dependecieserrorproblem
4 Posts 2 Posters 6.7k Views 2 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
    ferra1980
    last edited by paviro May 20, 2016, 8:54 PM May 18, 2016, 10:50 PM

    Hi all,
    I’m trying to install MagicMirror2 on a Pi2 but using the Automatic Installer, everythings goes well until the process reach the step “Installing dependencies”. I get this error:

    Installing dependencies ...
    npm WARN prefer global coffee-script@1.10.0 should be installed with -g
    npm WARN prefer global colorguard@1.2.0 should be installed with -g
    
    > electron-prebuilt@1.1.0 postinstall /root/MagicMirror/node_modules/electron-prebuilt
    > node install.js
    
    module.js:440
        throw err;
        ^
    
    Error: Cannot find module '/root/MagicMirror/node_modules/electron-prebuilt/install.js'
        at Function.Module._resolveFilename (module.js:438:15)
        at Function.Module._load (module.js:386:25)
        at Function.Module.runMain (module.js:575:10)
        at startup (node.js:160:18)
        at node.js:445:3...
    
    ...
    npm ERR! Linux 4.4.9-v7+
    npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
    npm ERR! node v6.1.0
    npm ERR! npm  v3.8.6
    npm ERR! code ELIFECYCLE
    
    npm ERR! electron-prebuilt@1.1.0 postinstall: `node install.js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the electron-prebuilt@1.1.0 postinstall script 'node install.js'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, this is most likely a problem with the electron-prebuilt package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     node install.js
    npm ERR! You can get information on how to open an issue for this project with:
    npm ERR!     npm bugs electron-prebuilt
    npm ERR! Or if that isn't available, you can get their info via:
    npm ERR!     npm owner ls electron-prebuilt
    npm ERR! There is likely additional logging output above.
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /root/MagicMirror/npm-debug.log
    Unable to install dependencies!
    root@raspberrypi:~# npm install
    

    Someone can help me?


    Note from admin: Please use Markdown on your code snippets so they are easier to read!

    1 Reply Last reply Reply Quote 0
    • M Offline
      MichMich Admin
      last edited by May 19, 2016, 11:35 AM

      What OS are you running? What Node version are you running (if the installer didn’t update)?

      1 Reply Last reply Reply Quote 0
      • F Offline
        ferra1980
        last edited by paviro May 20, 2016, 8:55 PM May 19, 2016, 2:38 PM

        Hi Mich,
        thanks for your help!
        I’m running the last version of Raspbian Jessie, Version: May 2016, Release date: 2016-05-10, Kernel version: 4.4, and the update of Node was a success (It’s the first step of the automatic intallation, right?)

        1 Reply Last reply Reply Quote 0
        • M Offline
          MichMich Admin
          last edited by May 19, 2016, 5:07 PM

          Interesting. Could you give https://github.com/electron/electron-quick-start a try to see if that one works?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/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