登录 主页

运行bundle install 却报错说:An error occurred while installing psych (5.1.1.1), and Bundler cannot continue.

2023-10-18 11:49AM

$ bundle install

……

……

An error occurred while installing psych (5.1.1.1), and Bundler cannot continue.

In Gemfile:
  debug was resolved to 1.8.0, which depends on
    irb was resolved to 1.8.3, which depends on
      rdoc was resolved to 6.5.0, which depends on
       psych

是因为 Gemfile 文件中没有 psych 需要在 Gemfile 文件中增加  gem 'psych'

# 由于我的 rails 版本比较低,所以使用版本小于 4

gem 'psych', '< 4'

然后再运行 bundle install

就可以了

返回>>

登录

请登录后再发表评论。

评论列表:

目前还没有人发表评论