使用grunt构建所选插件时出错

时间:2013-07-28 08:32:22

标签: gruntjs jquery-chosen

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

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>'  

我怎样才能让它发挥作用?或者至少我在哪里开始解决问题?

1 个答案:

答案 0 :(得分:1)

看起来您安装的grunt ruby​​ gem与您的任务运行器grunt冲突。只需使用以下代码卸载Ruby gem:gem uninstall grunt