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

Problems with npm install



  • Always, when I am trying to install the magic mirror it comes to this:

    Installing dependencies ...
    npm WARN prefer global coffee-script@1.10.0 should be installed with -g
    npm WARN prefer global jsonlint@1.6.2 should be installed with -g
    npm WARN prefer global colorguard@1.2.0 should be installed with -g
    

    and afterwards come this:

    > uws@0.14.5 install /root/MagicMirror/node_modules/uws
    > node-gyp rebuild > build_log.txt 2>&1 || exit 0
    

    and it stays for houers 😕

    I tryid it with Debian 8 and 9 on the rasp 3b with the autoinstaller. I am out of ideas. Maybe someone can help.



  • try

    npm install coffee-script -g
    

    and then the rest of the apps in the warning



  • Didnt work out. Tomorrow will try again


  • Module Developer

    @Djmixerno1 said in [Problems with npm install]

    npm WARN prefer global coffee-script@1.10.0 should be installed with -g
    npm WARN prefer global jsonlint@1.6.2 should be installed with -g
    npm WARN prefer global colorguard@1.2.0 should be installed with -g
    

    Those are just warnings and can be ignored. They won’t affect the operation of the mirror



  • Afters houers it is just crashing, nevermind which OS I am using. Can someone upload an image file of his own project? This would be very helpfull.


  • Module Developer

    @Djmixerno1 said in Problems with npm install:

    nevermind which OS I am using.

    Uhh, ok.

    Can someone upload an image file of his own project? This would be very helpfull.

    I’m sure it would be. However, there is an expectation that you will have to work at this. I struggled in the beginning, maybe more so than most, and people helped me, but only in the way of suggestions and directions. In which case, I will do the same.

    My recommendation is start with a newly formatted SD card. Install Raspian Jessie on it. Once that is up and running, do a manual installation of MM. In other words, don’t use the single line auto installer. Download the zip file from github repo. Unzip it. Place the MagicMirror folder in your pi/ folder with your Downloads, Music folders, etc… In the terminal cd MagicMirror then run npm install. Create you config.js file as per standard instructions. Run your mirror.

    You’ve spent many hours at this already? So have we all. What’s a couple more worth for you to have a working mirror?

    Keep us posted



  • You can do it! 🙂

    When I started there wasn’t even CLOSE to this amount of support… I’d install get an error have to go out on the internet and figure out how to fix it… I spent HOURS and DAYS getting it working… you can do it! We’re all here to help!



  • Yeah, I remembered getting my raspberry. I saw this project, I build it with no Problems, but without the mirror stuff, only the software. Today, 2-3 years later, I cant even build the software. What a shame 😕


  • Module Developer

    @Djmixerno1 said in Problems with npm install:

    What a shame 😕

    Don’t lose heart, friend. You can have it done in less than 2 hours if you follow my directions. I promise. Any warnings that appear during the dependency installation are just that, warnings. You can move on from there without installing them.



  • I found my mistake. Dont try to run this script with root permission!