Jekyll 在 Vercel 项目上构建错误

问题描述 投票:0回答:1

我有一个 Jekyll 网站托管在 Bitbucket 存储库上。
我有一个运行该网站来生成静态文件的 Vercel 项目。
几天前,它运行得很好,但今天它开始失败并出现此错误消息。 我不知道为什么现在不起作用。

它在本地运行良好,只有当 Vercel 尝试构建它时才不起作用。

Running build in Washington, D.C., USA (East) – iad1
Cloning bitbucket.org/kaplangabriel/jekyll-blog (Branch: main, Commit: 72555ed)
Previous build cache not available
Cloning completed: 3.940s
Running "vercel build"
Vercel CLI 33.7.1
Warning: Detected "engines": { "node": ">= 0.10.0" } in your `package.json` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
Installing dependencies...
Fetching https://github.com/eventmachine/eventmachine.git
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Fetching rake 13.2.1
Installing rake 13.2.1
Fetching bigdecimal 3.1.7
Fetching concurrent-ruby 1.2.3
Installing bigdecimal 3.1.7 with native extensions
Installing concurrent-ruby 1.2.3
Fetching connection_pool 2.4.1
Installing connection_pool 2.4.1
Fetching drb 2.2.1
Installing drb 2.2.1
Fetching minitest 5.22.3
Installing minitest 5.22.3
Fetching public_suffix 5.0.5
Installing public_suffix 5.0.5
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching colorator 1.1.0
Installing colorator 1.1.0
Fetching http_parser.rb 0.8.0
Installing http_parser.rb 0.8.0 with native extensions
Fetching ffi 1.16.3
Installing ffi 1.16.3 with native extensions
Fetching forwardable-extended 2.6.0
Installing forwardable-extended 2.6.0
Fetching gemoji 4.1.0
Installing gemoji 4.1.0
Fetching google-protobuf 4.26.1 (x86_64-linux)
Installing google-protobuf 4.26.1 (x86_64-linux)
Fetching racc 1.7.3
Installing racc 1.7.3 with native extensions
Fetching rb-fsevent 0.11.2
Installing rb-fsevent 0.11.2
Fetching rexml 3.2.6
Installing rexml 3.2.6
Fetching liquid 4.0.4
Installing liquid 4.0.4
Fetching mercenary 0.4.0
Installing mercenary 0.4.0
Fetching rouge 4.2.1
Installing rouge 4.2.1
Fetching safe_yaml 1.0.5
Installing safe_yaml 1.0.5
Fetching unicode-display_width 2.5.0
Installing unicode-display_width 2.5.0
Fetching webrick 1.8.1
Installing webrick 1.8.1
Fetching jekyll-paginate 1.1.0
Installing jekyll-paginate 1.1.0
Fetching i18n 1.14.4
Installing i18n 1.14.4
Fetching tzinfo 2.0.6
Installing tzinfo 2.0.6
Fetching net-http-persistent 4.0.2
Installing net-http-persistent 4.0.2
Fetching addressable 2.8.6
Installing addressable 2.8.6
Fetching net-http 0.4.1
Installing net-http 0.4.1
Fetching em-websocket 0.5.3
Installing em-websocket 0.5.3
Fetching pathutil 0.16.2
Installing pathutil 0.16.2
Fetching sass-embedded 1.75.0 (x86_64-linux-gnu)
Installing sass-embedded 1.75.0 (x86_64-linux-gnu)
Fetching nokogiri 1.16.4 (x86_64-linux)
Installing nokogiri 1.16.4 (x86_64-linux)
Fetching kramdown 2.4.0
Installing kramdown 2.4.0
Fetching terminal-table 3.0.2
Installing terminal-table 3.0.2
Fetching activesupport 7.1.3.2
Installing activesupport 7.1.3.2
Fetching faraday-net_http 3.1.0
Installing faraday-net_http 3.1.0
Fetching jekyll-sass-converter 3.0.0
Installing jekyll-sass-converter 3.0.0
Fetching kramdown-parser-gfm 1.1.0
Installing kramdown-parser-gfm 1.1.0
Fetching html-pipeline 2.14.3
Installing html-pipeline 2.14.3
Fetching faraday 2.9.0
Installing faraday 2.9.0
Fetching faraday-net_http_persistent 2.1.0
Installing faraday-net_http_persistent 2.1.0
Fetching faraday-retry 2.2.1
Installing faraday-retry 2.2.1
Fetching sawyer 0.9.2
Installing sawyer 0.9.2
Fetching algolia 2.3.4
Installing algolia 2.3.4
Fetching octokit 4.25.1
Installing octokit 4.25.1
Fetching jekyll-gist 1.5.0
Installing jekyll-gist 1.5.0
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching listen 3.9.0
Installing listen 3.9.0
Fetching jekyll-watch 2.2.1
Installing jekyll-watch 2.2.1
Fetching jekyll 4.3.3
Installing jekyll 4.3.3
Fetching jekyll-feed 0.17.0
Fetching jekyll-include-cache 0.2.1
Installing jekyll-feed 0.17.0
Installing jekyll-include-cache 0.2.1
Fetching jekyll-sitemap 1.4.0
Fetching jemoji 0.13.0
Installing jemoji 0.13.0
Installing jekyll-sitemap 1.4.0
Bundle complete! 13 Gemfile dependencies, 60 gems now installed.
Bundled gems are installed into `./vendor/bundle`
Post-install message from html-pipeline:
-------------------------------------------------
Thank you for installing html-pipeline!
You must bundle Filter gem dependencies.
See html-pipeline README.md for more details.
https://github.com/jch/html-pipeline#dependencies
-------------------------------------------------
Installing dependencies...
added 136 packages in 8s
60 packages are looking for funding
  run `npm fund` for details
/ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/source/git.rb:222:in `rescue in load_spec_files': https://github.com/eventmachine/eventmachine.git (at v1.2.7@9cb13a8) is not yet checked out. Run `bundle install` first. (Bundler::GitError)
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/source/git.rb:218:in `load_spec_files'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/source/path.rb:108:in `local_specs'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/source/git.rb:185:in `specs'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/lazy_specification.rb:97:in `materialize_for_installation'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:281:in `map!'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:281:in `specs_for_dependency'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:34:in `block in for'
    from <internal:kernel>:187:in `loop'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:22:in `for'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:121:in `materialize'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/definition.rb:579:in `materialize'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/definition.rb:203:in `specs'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/definition.rb:270:in `specs_for'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/runtime.rb:18:in `setup'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler.rb:162:in `setup'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/setup.rb:26:in `block in <top (required)>'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/ui/shell.rb:159:in `with_level'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/ui/shell.rb:111:in `silence'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/setup.rb:26:in `<top (required)>'
    from <internal:/ruby33/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
    from <internal:/ruby33/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
    from /vercel/path0/vendor/bin/jekyll:25:in `<main>'
/ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/source/path.rb:210:in `load_spec_files': The path `/vercel/path0/vendor/bundle/ruby/3.2.0/bundler/gems/eventmachine-9cb13a8a6236` does not exist. (Bundler::PathError)
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/source/git.rb:219:in `load_spec_files'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/source/path.rb:108:in `local_specs'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/source/git.rb:185:in `specs'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/lazy_specification.rb:97:in `materialize_for_installation'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:281:in `map!'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:281:in `specs_for_dependency'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:34:in `block in for'
    from <internal:kernel>:187:in `loop'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:22:in `for'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:121:in `materialize'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/definition.rb:579:in `materialize'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/definition.rb:203:in `specs'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/definition.rb:270:in `specs_for'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/runtime.rb:18:in `setup'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler.rb:162:in `setup'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/setup.rb:26:in `block in <top (required)>'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/ui/shell.rb:159:in `with_level'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/ui/shell.rb:111:in `silence'
    from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/setup.rb:26:in `<top (required)>'
    from <internal:/ruby33/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
    from <internal:/ruby33/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
    from /vercel/path0/vendor/bin/jekyll:25:in `<main>'
Error: Command "jekyll build" exited with 1

这是我的 Gemfile

source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
#     bundle exec jekyll serve --livereload
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
# gem "jekyll", "~> 4.2.1"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "jekyll-include-cache", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
  gem "jekyll-paginate"
  gem "jekyll-sitemap"
  gem "jekyll-gist"
  gem "jekyll-feed"
  gem "jemoji"
  gem 'algolia', '~> 2.3', '>= 2.3.4'
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
  gem "tzinfo", "~> 1.2"
  gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
gem "webrick"
gem 'eventmachine', '1.2.7', git: 'https://github.com/eventmachine/eventmachine.git', tag: 'v1.2.7'
gem 'faraday-retry'
ruby git bitbucket jekyll vercel
1个回答
0
投票

尝试替换以下内容并重试

gem 'eventmachine', '1.2.7', git: 'https://github.com/eventmachine/eventmachine.git', tag: 'v1.2.7'

gem 'eventmachine'
© www.soinside.com 2019 - 2024. All rights reserved.