自动运行报错误5. In Gemfile: 214 jekyll was resolved to 4.4.1, which depends on 215 jekyll-sass-converter was resolved to 3.1.0, which depends on 216 sass-embedded 217 Error: The process ‘/opt/hostedtoolcache/Ruby/3.1.4/x64/bin/bundle’ failed with exit code 5 这个错误是因为 jekyll-sass-converter 3.1.0 依赖 sass-embedded,但在你的环境中缺少该依赖或安装失败导致的。以下是分步解决方案: CI 环境(如 GitHub Actions):如果你在 CI 中遇到这个错误,修改 Ruby 版本配置(以 GitHub Actions 为例): 修改参数ruby-version: ‘3.2’ 3.2的版本号 .github/workflows/jekyll.yml
jobs: # Build job build: runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Ruby uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 with: ruby-version: ‘3.2’ # Not needed with a .ruby-version file bundler-cache: true # runs ‘bundle install’ and caches installed gems automatically cache-version: 0 # Increment this number if you need to re-download cached gems