rammcodes / Dopefolio

Dopefolio 🔥 - Portfolio Template for Developers 🚀
https://dopefolio.netlify.app
GNU General Public License v3.0
3.4k stars 683 forks source link

node-sass: Permission denied #17

Open kabeza opened 2 years ago

kabeza commented 2 years ago

Hi I've cloned the repository. I could install dependencies and run the site with vscode's liveserver extension Now, I can't get changes compiled

I edit the sass/abstracts/_variables.scss but when I try to complie it I get the following error

mypc:/media/html/dopefolio/$ npm run compile:scss

dopefolio@1.0.0 compile:scss node-sass sass/main.scss css/style.css -w sh: 1: node-sass: Permission denied

I get the same result even when prefixing the command with sudo

Any idea? Thanks a lot

jotafett commented 2 years ago

If I may, I suggest running an "ls -al " (foldername being where your www data lives) and confirming what user/group it is part of.

truezerox commented 2 years ago

what os are you running it on ? Windows or Linux ? did you check if the permissions are correct ? usually these errors come from permission errors.

kabeza commented 2 years ago

what os are you running it on ? Windows or Linux ? did you check if the permissions are correct ? usually these errors come from permission errors.

Linux. Will check again

truezerox commented 2 years ago

If you need help I am happy to check with you

kabeza commented 2 years ago

If you need help I am happy to check with you

Indeed it was a permissions problem. I created a folder in my home/user folder executed steps again and all went fine The problem was my Apache's root folder is in a NTFS mounted drive (shared with Windows VM) and I guess npm/node won't work fine there

imagen_0572

Thanks again

truezerox commented 2 years ago

Not a problem at all we are all in this to help each other

jotafett commented 2 years ago

I agree! We're all happy to help.

truezerox commented 2 years ago

Please also make sure you run the command npm audit fix - - force for security fixes its recommended

kabeza commented 2 years ago

Please also make sure you run the command npm audit fix - - force for security fixes its recommended

Don't know what is the command for, but I guess it patches vulnerabilities or something in the packages from package.json (?)

imagen_0576

truezerox commented 2 years ago

Yes it does I didn't know it before and found it out today I normally don't use npm much on windows. I want to learn Jscript better there is my focus now and kotlin