ruby 是否创建Hanami项目?

vhmi4jdf  于 2022-12-12  发布在  Ruby
关注(0)|答案(1)|浏览(104)

在hanami 2.1和ruby版本3.0.2中...当创建hanami新书架时。我得到了这个错误。

Created bookshelf/
-> Within bookshelf/
Created .env
Created README.md
Created Gemfile
Created Rakefile
Created config.ru
Created config/app.rb
Created config/settings.rb
Created config/routes.rb
Created config/puma.rb
Created lib/tasks/.keep
Created lib/bookshelf/types.rb
Created app/actions/.keep
Created app/action.rb
Running Bundler install...
`bundle install' failed

"install: unknown option -- jobs=2\nTry 'install --help' for more information."

我使用捆绑安装,但仍然................ cd书架和运行捆绑安装,它的工作,但当
捆绑执行hanami服务器

C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/rubygems_integration.rb:308:in `block in replace_bin_path': can't find executable guard for gem guard. guard is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/rubygems_integration.rb:336:in `block in replace_bin_path'
        from C:/Ruby30-x64/bin/guard:23:in `<main>'

将gem“guard”添加到Gemfile中。

No Guardfile exists at Guardfile. (Guard::Guardfile::Evaluator::NoCustomGuardfile)
pexxcrt2

pexxcrt21#

从应用的根目录运行bunble exec hanami install

相关问题