MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED Error Installing Dependencies Permission Denied

    Troubleshooting
    4
    8
    1952
    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
      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

      justjim1220 1 Reply Last reply Reply Quote 0
      • justjim1220
        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
          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?

          justjim1220 1 Reply Last reply Reply Quote 0
          • justjim1220
            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
              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
                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

                Create a working config
                How to add modules

                B 1 Reply Last reply Reply Quote 1
                • B
                  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?

                  bhepler 1 Reply Last reply Reply Quote 0
                  • bhepler
                    bhepler Project Sponsor @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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy