I have a package.json at:
/home/user/dev/project/package.json
If I navigate to this location:
cd /home/user/dev/project
Then run a command:
npm run compile
It works and there are no errors.
However, if I try to run the command like this
/home/user/dev/project/ npm run compile
I get a message:
zsh: permission denied: /home/user/dev/project/
Why is this happening? I have not changed the user I'm logged in as.