You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows环境下GitHub Pages项目安装libv8适配mini_racer失败求助

本地搭建GitHub Pages时bundle install遇libv8-node安装失败问题

系统/版本信息

  • Windows 11 版本22H2
  • gem 3.5.6
  • ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x64-mingw-ucrt]
  • Jekyll 4.3.3

问题详情

首次搭建GitHub Pages,fork主题并在VS Code完成个性化编辑后,执行bundle install命令时出现错误,目标是在本地成功执行bundle install和bundle exec jekyll命令。

执行bundle install后报错内容:

An error occurred while installing libv8-node (18.16.0.0), and Bundler cannot
continue.

In Gemfile:
  mini_racer was resolved to 0.8.0, which depends on
    libv8-node

已尝试的解决方法

  • 执行命令gem install libv8 -v '3.16.14.3' -- --with-system-v8,显示安装成功,但再次运行bundle install仍出现相同错误
  • 执行gem update --system更新至最新版本,问题未解决
  • 在Gemfile中指定gem 'mini_racer', '0.8.0'版本,无效

请求

需要可行的解决建议,Gemfile内容见截图。

内容的提问来源于stack exchange,提问作者user22062628

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.28 20:55:13