Dopefolio icon indicating copy to clipboard operation
Dopefolio copied to clipboard

node-sass: Permission denied

Open kabeza opened this issue 3 years ago • 10 comments

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

[email protected] 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

kabeza avatar Jan 20 '22 15:01 kabeza

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.

jotafett avatar Apr 13 '22 13:04 jotafett

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.

truezerox avatar May 24 '22 14:05 truezerox

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

kabeza avatar May 24 '22 15:05 kabeza

If you need help I am happy to check with you

truezerox avatar May 24 '22 15:05 truezerox

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

kabeza avatar May 24 '22 15:05 kabeza

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

truezerox avatar May 24 '22 16:05 truezerox

I agree! We're all happy to help.

jotafett avatar May 24 '22 16:05 jotafett

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

truezerox avatar May 24 '22 17:05 truezerox

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

kabeza avatar May 24 '22 17:05 kabeza

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

truezerox avatar May 24 '22 18:05 truezerox