首页 > 解决方案 > Elastic Beanstalk 中的权限被拒绝

问题描述

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"

某些搜索链接无效。

话虽如此,问题是由于缺乏许可。

如何添加权限?我尝试使用 .ebextension 文件。但没有按预期工作。

标签: amazon-web-servicesamazon-elastic-beanstalkamazon-elbaws-ebs

解决方案


将 .npmrc 和 .ebextensions 提交到 git 后,链接它工作正常。


推荐阅读