Rails 5.2.0 应用程序 Webpacker 需要 Yarn ">=1 <2" 并且您使用的是 Yarn v0.1.1 2011,elastic beanstalk 部署失败
Rails 5.2.0 app Webpacker requires Yarn ">=1 <2" and you are using Yarn v0.1.1 2011, elastic beanstalk deployment failed
[弃用] trollop gem 已重命名为 optimist,将不再受支持。请尽快转为乐观主义者。
Webpacker 需要 Yarn ">=1 <2" 并且您使用的是 Yarn v0.1.1 2011 Jesper Kjeldgaard
请升级 Yarn https://yarnpkg.com/lang/en/docs/install/
退出!
2021/03/03 05:06:35.767452 [INFO] 正在执行清理逻辑
2021/03/03 05:06:35.769905 [INFO] 命令服务响应:{"status":"FAILURE","api_version":"1.0","results":[{"status":" FAILURE","msg":"引擎执行遇到错误。","returncode":1,"events":[{"msg":"实例部署失败,详见'eb-engine.log'。", “时间戳”:1614747995,“严重性”:“错误”}]}]}
2021/03/03 05:06:35.770091 [INFO] Platform Engine 已完成命令执行:app-deploy
[ec2-user@ip-172-31-28-237 日志]$
如果您使用的是 Docker
,则应将这些行放在 Dockerfile
的 RUN apt-get update -qq && apt-get install ....
部分之前:
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
[弃用] trollop gem 已重命名为 optimist,将不再受支持。请尽快转为乐观主义者。 Webpacker 需要 Yarn ">=1 <2" 并且您使用的是 Yarn v0.1.1 2011 Jesper Kjeldgaard 请升级 Yarn https://yarnpkg.com/lang/en/docs/install/ 退出!
2021/03/03 05:06:35.767452 [INFO] 正在执行清理逻辑 2021/03/03 05:06:35.769905 [INFO] 命令服务响应:{"status":"FAILURE","api_version":"1.0","results":[{"status":" FAILURE","msg":"引擎执行遇到错误。","returncode":1,"events":[{"msg":"实例部署失败,详见'eb-engine.log'。", “时间戳”:1614747995,“严重性”:“错误”}]}]}
2021/03/03 05:06:35.770091 [INFO] Platform Engine 已完成命令执行:app-deploy
[ec2-user@ip-172-31-28-237 日志]$
如果您使用的是 Docker
,则应将这些行放在 Dockerfile
的 RUN apt-get update -qq && apt-get install ....
部分之前:
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list