I have a
ec2 instance on AWS.
yarn on my project there results in
error An unexpected error occurred: “EPERM: operation not permitted,
- yarn cache clean
- rm -rf node_modules and running yarn again
- sudo chmod -R 777 my-app
- sudo chmod -R 777 node_modules/.bin
None of them actually helped and I am getting the same error.
ls -la on the root directory shows my project files all of which have
root user and
root group except for the node_modules that have
ec2-user as group and user.
I don’t know what else to do. Running
sudo yarn fails:
command not found.
Any clue, idea ? It’s linux centos machine.