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.

    Problems with npm install

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 4 Posters 6.0k 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.
    • ? Offline
      A Former User
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • B Offline
        barnosch
        last edited by

        try

        npm install coffee-script -g
        

        and then the rest of the apps in the warning

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by

          Didnt work out. Tomorrow will try again

          1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer
            last edited by

            @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

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by

              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.

              Mykle1M 1 Reply Last reply Reply Quote 0
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @Guest
                last edited by

                @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

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • cowboysdudeC Offline
                  cowboysdude Module Developer
                  last edited by

                  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!

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by

                    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 :/

                    Mykle1M 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @Guest
                      last edited by Mykle1

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

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 1
                      • ? Offline
                        A Former User
                        last edited by

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

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