我正在使用一个使用后卫的项目。当我尝试在项目中键入“guard”时,它会给我以下错误。该文件夹具有有效的Guardfile -
/home/murtaza/.rvm/gems/ruby-1.9.3-p194/gems/guard-1.6.1/lib/guard.rb:50:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/gems/guard-1.6.1/lib/guard.rb:50:in `setup'
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/gems/guard-1.6.1/lib/guard.rb:183:in `start'
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/gems/guard-1.6.1/lib/guard/cli.rb:110:in `start'
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor.rb:275:in `dispatch'
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/gems/guard-1.6.1/bin/guard:6:in `<top (required)>'
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/bin/guard:23:in `load'
from /home/murtaza/.rvm/gems/ruby-1.9.3-p194/bin/guard:23:in `<main>'
答案 0 :(得分:0)
答案 1 :(得分:0)
发生错误是因为dir已被删除。