我正在尝试将我的AWS弹性beanstalk实例中的node.js版本更新为亚马逊最新AMI版本中包含的最新支持版本v8.9.3:https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html#concepts.platforms.nodejs
但是,当我在配置中更改版本号时 - >软件配置 - >节点版本 - > 8.9.3我收到以下错误:
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/tmp/deployment/application/node_modules/synchronize/node_modules/fibers/build'
gyp ERR! System Linux 4.9.76-3.78.amzn1.x86_64
gyp ERR! command "/opt/elasticbeanstalk/node-install/node-v8.9.3-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v8.9.3-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /tmp/deployment/application/node_modules/synchronize/node_modules/fibers
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
ETC........
我已将实例更新为配置"运行Node.js的#64; 64位Amazon Linux 2017.09 v4.4.4"在文档中说它支持V8.9.3
我已尝试将.npmrc文件添加到项目中,如本回答Beanstalk: Node.js deployment - node-gyp fails due to permission denied中所述,我仍然遇到同样的错误。
答案 0 :(得分:0)
尝试在下面添加“环境属性”。