0

我正在尝试使用 grunt构建选择的插件。我昨天能够运行构建,但是当我今天尝试它时,它遇到了错误!我不知道我做了什么或出了什么问题。只有这个错误信息:

D:\git\chosen>grunt build  
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/project.rb:18:in `open': No such file or directory - repos (Errno::ENOENT)  
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/project.rb:18:in `entries'  
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/project.rb:18:in `generate_files'  
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:13:in `block in <class:Server>'  
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1385:in `configure'  
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:13:in `<class:Server>'  
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:2:in `<module:Grunt>'  
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:1:in `<top (required)>'  
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/bin/grunt:5:in`<top (required)>'  
    from C:/Ruby200-x64/bin/grunt:23:in `load'  
    from C:/Ruby200-x64/bin/grunt:23:in `<main>'  

我怎样才能让它工作?或者至少我从哪里开始解决问题?

4

1 回答 1

1

看起来您安装了与任务运行程序 grunt 冲突的grunt ruby​​ gem。只需使用以下命令卸载 Ruby gem:gem uninstall grunt

于 2013-07-28T21:44:34.873 回答