EACCES:Elastic Beanstalk部署拒绝权限

时间:2020-05-17 14:16:48

标签: node.js npm amazon-elastic-beanstalk

我正在尝试通过input->(0 0);(1 0);(1 1);(0 1); step=0.2; got->(0,0);(1,0);(1,0.2);(0,0.2);(0,0.4);(1,0.4);(1,0.6);(0,0.6);(0,0.8);(1,0.8);(1,1);(0,1); 部署我的node.js应用程序,但是出现以下错误:

eb create

我有一个2020/05/17 02:15:37.303673 [ERROR] An error occurred during execution of command [app-deploy] - [Use NPM to install dependencies]. Stop running the command. Error: Command /bin/sh -c npm --production install failed with error exit status 1. Stderr:npm WARN deprecated buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Pre-built binaries not installable for canvas@2.5.0 and node@12.16.2 (node-v72 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/var/app/staging/node_modules/canvas/build' ,其中有:

.ebextensions/00_canvas.cfg

和一个packages: yum: cairo: [] cairo-devel: [] libjpeg-turbo-devel: [] giflib-devel: [] libpng-devel: []

.ebextensions/01_permissions.cfg

我想念什么?

1 个答案:

答案 0 :(得分:0)

尝试将 unsafe-perm=true 添加到 .npmrc 文件:https://stackoverflow.com/a/63689721/1062614