Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-sass: Permission denied #17

Open
kabeza opened this issue Jan 20, 2022 · 10 comments
Open

node-sass: Permission denied #17

kabeza opened this issue Jan 20, 2022 · 10 comments

Comments

@kabeza
Copy link

kabeza commented Jan 20, 2022

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

@jotafett
Copy link

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
Copy link

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
Copy link
Author

kabeza commented May 24, 2022

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
Copy link

If you need help I am happy to check with you

@kabeza
Copy link
Author

kabeza commented May 24, 2022

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
Copy link

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

@jotafett
Copy link

I agree! We're all happy to help.

@truezerox
Copy link

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

@kabeza
Copy link
Author

kabeza commented May 24, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants