amazon-web-services - 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 文件。但没有按预期工作。
解决方案
将 .npmrc 和 .ebextensions 提交到 git 后,链接它工作正常。
推荐阅读
- html - 实时服务器不从 css 加载 img
- java - 谷歌地图应用程序中未显示地理意图标签
- python - 导入已安装的 pygame 模块时出错
- swift - 鼠标按下行为 NSControl 和 NSView 的第一响应者
- python - LSTM网络的图解说明
- swift - Swift 排序的数组总是按升序排列
- javascript - React/ES6 减少对象
- java - 我无法在 Android Studio 上启动模拟器
- javascript - 未捕获的错误:意外的行:第 541 行的 THREE.OBJLoader.parse 中的“n 0 0 1”
- c# - 在 asp.net 身份中向帐户控制器中的登录操作添加附加参数的正确方法是什么?