整洁-这些(多个)回溯错误消息告诉我什么?

时间:2019-07-14 14:40:15

标签: neat

我安装得很整洁,遇到了这些追溯错误(最近一次通话是最近一次):

9: from /Users/jgattus/.asdf/installs/ruby/2.6.3/bin/neat:23:in `<main>'
8: from /Users/jgattus/.asdf/installs/ruby/2.6.3/bin/neat:23:in `load'
7: from /Users/jgattus/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/neat-4.0.0/bin/neat:5:in `<top (required)>'
6: from /Users/jgattus/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
5: from /Users/jgattus/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
4: from /Users/jgattus/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
3: from /Users/jgattus/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
2: from /Users/jgattus/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/neat-4.0.0/lib/neat/generator.rb:12:in `install'
1: from /Users/jgattus/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/neat-4.0.0/lib/neat/generator.rb:51:in `neat_files_already_exist?'

/Users/jgattus/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/neat-4.0.0/lib/neat/generator.rb:56:在`install_path ':未初始化的常量Neat :: Generator :: Pathname(NameError)

我尝试将neat installneat install --path一起使用,但是没有运气。我不确定这是一个错误还是我以某种方式对其进行了修复。

$ gem install neat
$ neat install

我希望整洁的安装不会出现任何错误。

1 个答案:

答案 0 :(得分:0)

回溯必须与我特定的ruby安装有关。我使用指南Install Rails运行了Ruby和Rails的全新安装。然后,我可以将Neat成功安装到我的项目中。