chmod /tmp before Elastic Beanstalk install

779 views Asked by At

My node.js application fails to install on Elastic Beanstalk with the following error when installing the leveldown module:

prebuild WARN install EACCES: permission denied, access '/tmp/.npm'

How do I set full permission on /tmp before deploying a new app version with Elastic Beanstalk?

1

There are 1 answers

0
Klemens Zleptnig On

See this answer: https://stackoverflow.com/a/41616528/769726 You can use .ebextensions and deploy a script that changes the permissions.