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

Problems with npm install

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 4 Posters 5.9k 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 Sep 14, 2017, 1:24 PM

    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 Sep 14, 2017, 2:58 PM

      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 Sep 14, 2017, 10:19 PM

        Didnt work out. Tomorrow will try again

        1 Reply Last reply Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer
          last edited by Sep 14, 2017, 11:21 PM

          @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 Sep 16, 2017, 1:32 AM

            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.

            M 1 Reply Last reply Sep 16, 2017, 1:50 AM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @Guest
              last edited by Sep 16, 2017, 1:50 AM

              @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
              • C Offline
                cowboysdude Module Developer
                last edited by Sep 16, 2017, 1:57 AM

                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 Sep 16, 2017, 1:59 AM

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

                  M 1 Reply Last reply Sep 16, 2017, 2:04 AM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @Guest
                    last edited by Mykle1 Sep 16, 2017, 2:07 AM Sep 16, 2017, 2:04 AM

                    @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 Sep 22, 2017, 6:29 PM

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

                      M 1 Reply Last reply Sep 22, 2017, 7:56 PM Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/11
                        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