Error Installing Dependencies Permission Denied
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
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
might help to copy and paste your error log on here also…
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?
I really don’t know, was just a suggestion…
not quite understanding why its telling you permission denied…
what command did you use?
then… npm install ?
@justjim1220 Yes this is what I have done. Do I need to be root to install? I am using sudo so it should anyways
you can’t install in Desktop… its protected…
use your home folder… then make a shortcut to start the mirror
@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?
@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