0

我已经安装了guard jasmine-headless webkit,但它导致了一个错误。从输出我认为这是唯一的。

有谁知道如何解决这个问题,所以它可以找到文件。

这是输出:

→ guard init
/Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/pry-1.0.0.pre1/lib/pry/pry_class.rb:249: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
16:13:18 - INFO - Writing new Guardfile to /Users/redres/Desktop/mailtest/Guardfile
16:13:19 - INFO - jammit guard added to Guardfile, feel free to edit it
/Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/plugin/base.rb:53:in `read': No such file or directory - /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-jasmine-headless-webkit-0.3.2/lib/guard/jasmineheadlesswebkit/templates/Guardfile (Errno::ENOENT)
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/plugin/base.rb:53:in `template'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/plugin_util.rb:129:in `block in add_to_guardfile'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/plugin_util.rb:126:in `open'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/plugin_util.rb:126:in `add_to_guardfile'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/guardfile/generator.rb:62:in `initialize_template'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/guardfile/generator.rb:88:in `block in initialize_all_templates'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/guardfile/generator.rb:88:in `each'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/guardfile/generator.rb:88:in `initialize_all_templates'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/guardfile.rb:39:in `initialize_all_templates'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/lib/guard/cli.rb:167:in `init'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-2.4.0/bin/guard:6:in `<top (required)>'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/bin/guard:23:in `load'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/bin/guard:23:in `<main>'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `eval'
    from /Users/redres/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `<main>'

编辑:

如果我这样做,find /Users/redres/.rvm/gems/ruby-1.9.3-p484 | grep Guardfile我会得到很多点击

.rvm/gems 文件夹还包含这些文件夹两次 ruby​​-1.9.3-p484@global 和 ruby​​-1.9.3-p484。如果我列出 ruby​​ 版本,我会得到当前、默认和当前 && 默认值。

我试过了sudo chmod 777 -R /Users/redres/.rvm,但后来我得到了chmod: -R: No such file or directory

4

1 回答 1

1

该错误表明该文件/Users/redres/.rvm/gems/ruby-1.9.3-p484/gems/guard-jasmine-headless-webkit-0.3.2/lib/guard/jasmineheadlesswebkit/templates/Guardfile不存在。可以?

如果是,应该是权限问题。

如果没有,Guardfile 应该在哪里?如果您无法猜测,请尝试运行find /Users/redres/.rvm/gems/ruby-1.9.3-p484 | grep Guardfile它当前可以存在的位置的完整列表。您可能使用了错误的 gemset/ruby 版本。

于 2014-04-17T15:20:19.867 回答