Permission denied in Elastic Beanstalk

1.3k views Asked by At
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/var/app/staging/node_modules/grpc/src/node' 
gyp WARN EACCES current user ("healthd") does not have permission to access the dev dir "/root/.cache/node-gyp/12.13.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/app/staging/node_modules/grpc/.node-gyp"

Some searches link not worked for.

Saying that, the issue was due to lack of permission.

How to add permission? I tried with .ebextension files. But not worked as expected.

1

There are 1 answers

0
Ashwanth Madhav On

Link Its worked fine after commiting the .npmrc and .ebextensions to git.