安装 SASSC gem 错误 ruby 版本时出现 AWS Codebuild 错误



我正在运行一个Codestar项目。示例应用安装正常。当我使用 SASSC 添加我的应用程序时,由于 Ruby 版本而失败。有没有通知CodeBuild升级Ruby版本?尝试查看构建规范.yml,我在任何地方都很近吗?试图谷歌。

在构建日志的中间

Installing sassc 2.0.0 with native extensions
 Gem::InstallError: sassc requires Ruby version >= 2.3.3.

在构建日志的末尾

An error occurred while installing sassc (2.0.0), and Bundler cannot continue.
Make sure that `gem install sassc -v '2.0.0'` succeeds before bundling.
 [Container] 2018/12/31 04:17:42 Command did not exit successfully bundle install exit status 5
[Container] 2018/12/31 04:17:42 Phase complete: INSTALL Success: false
[Container] 2018/12/31 04:17:42 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: bundle install. Reason: exit status 5

谢谢。

我将Codebuild环境从AWS Linux发行版更改为带有Ruby 2.5.3的Ubuntu,这解决了我的问题。除非有人有更好的答案。

最新更新