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 Dependencies Permission Denied

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 4 Posters 2.9k Views 3 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.
    • B Offline
      BuckGup
      last edited by BuckGup

      I am getting an error after I run the script to install magic mirror. It gets hung up on installing dependencies with npm. It says permission denied. I have already tried adding sudo in front of the command but that didn’t help. Here’s a picture

      https://imgur.com/ezQwMVR

      justjim1220J 1 Reply Last reply Reply Quote 0
      • justjim1220J Offline
        justjim1220 Module Developer @BuckGup
        last edited by

        @BuckGup

        Things to try…

        reboot the computer.

        make sure you are signed into github, & into the computer.

        make sure you are connected to the internet.

        delete and reinstall MagicMirror

        use git bash, and install npm install

        might help to copy and paste your error log on here also…

        "Life's Too Short To Dance With Ugly People"
        Jim Hallock - 1995

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          BuckGup @justjim1220
          last edited by

          @justjim1220
          I have rebooted, swapped to ethernet, and reinstalled. But I haven’t signed into github. Do you really need to sign in to clone something? If so how do you sign in through the CLI?

          justjim1220J 1 Reply Last reply Reply Quote 0
          • justjim1220J Offline
            justjim1220 Module Developer @BuckGup
            last edited by

            @buckgup

            I really don’t know, was just a suggestion…

            not quite understanding why its telling you permission denied…

            what command did you use?

            git clone https://github.com/MichMich/MagicMirror.git

            then… npm install ?

            "Life's Too Short To Dance With Ugly People"
            Jim Hallock - 1995

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              BuckGup @justjim1220
              last edited by

              @justjim1220 Yes this is what I have done. Do I need to be root to install? I am using sudo so it should anyways

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil
                last edited by

                you can’t install in Desktop… its protected…

                use your home folder… then make a shortcut to start the mirror

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Reply Quote 1
                • B Offline
                  BuckGup @sdetweil
                  last edited by

                  @sdetweil Alright thank you. Will try this. By default does it install to desktop or is it because I ran it when I was on the desktop?

                  bheplerB 1 Reply Last reply Reply Quote 0
                  • bheplerB Offline
                    bhepler Module Developer @BuckGup
                    last edited by

                    @buckgup It installed into desktop because that’s the folder you were in when you ran the git command. So:

                    cd /home/pug
                    git clone https://github.com/MichMich/MagicMirror.git
                    cd MagicMirror
                    npm install
                    
                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • 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