I have a ec2
instance on AWS.
Running yarn
on my project there results in
error An unexpected error occurred: “EPERM: operation not permitted,
chmod ‘/home/ec2-user/my-app/node_modules/.bin/hashlips'”.
I tried:
- 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.
Running 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
and 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.