node permission denied for executing script
Ok, all these permission errors are driving me crazy! So I am using vs code and when I tried to execute my code, this happened:
internal/fs/utils.js:307 throw err; ^ Error: EACCES: permission denied, open '/home/myName/path/to/my/project'
I was just trying to execute my script! I solved the problem of not being able to install a package, now this happens!? So the thing is, why is this happening and how can I solve this?
And this stack overflow question, didn't help, so please just dont provide a link to that.
Are you using Windows or Linux? From what I can guess you are using Linux, try giving it executable permissions with
chmod +x /home/myName/path/to/my/project. (also, don't you usually use Windows?)