gpt4 book ai didi

node.js - 使用 webpack 时出现 Elastic beanstalk 安装后错误

转载 作者:太空宇宙 更新时间:2023-11-04 02:06:20 24 4
gpt4 key购买 nike

我正在尝试将我的 Fluxible Node.js 应用程序部署到 Elastic beanstalk,当我尝试运行安装后步骤时,出现权限错误。我应该在 Elastic Beanstalk 上设置配置吗?

"postInstall":  "node_modules/.bin/webpack --config webpack.config.production.js",

错误

 Error: EACCES: permission denied, open '/tmp/deployment/application/node_modules/unicode/category/Cc.js'
at Error (native)

npm ERR! Linux 4.9.27-14.31.amzn1.x86_64
npm ERR! argv "/opt/elasticbeanstalk/node-install/node-v6.10.0-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v6.10.0-linux-x64/bin/npm" "--production" "rebuild"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! unicode@0.6.1 postinstall: `node install.js`

最佳答案

Elastic beanstalk 与 unicode Node 模块不兼容。

这是 AWS 支持人员为我提供的使用 ebextensions 的解决方法。

.ebextensions/unicode.config

packages:
yum:
unicode-ucd: []

commands:
symlink_unicode:
command: "ln -fs /usr/share/unicode/ucd/UnicodeData.txt /usr/share/unicode/UnicodeData.txt"

关于node.js - 使用 webpack 时出现 Elastic beanstalk 安装后错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44185275/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com