• Uncategorized

About linux : running-yarn-fails-with-EPERM-operation-not-permitted

Question Detail

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.

Question Answer

No answer for now.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.