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

Error Installing Dependecies

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

  • Admin

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

  • 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?)

  • Admin

    Interesting. Could you give a try to see if that one works?