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

Gruntjs 使用grunt构建所选插件时出错,gruntjs,jquery-chosen,Gruntjs,Jquery Chosen,我正在尝试使用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:/Ruby20

我正在尝试使用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>'  
D:\git\selected>grunt构建
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/project.rb:18:在“打开”中:没有这样的文件或目录-repos(Errno::enoint)
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/project.rb:18:in'entries'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/project.rb:18:“生成文件”中的
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:13:in'block in'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1385:in'configure'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:13:in`'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:2:in`'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:1:in`'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/grunt-0.0.6/bin/grunt:5:in`'
从C:/Ruby200-x64/bin/grunt:23:in'load'
来自C:/Ruby200-x64/bin/grunt:23:in`'

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

看起来您安装了ruby gem,这与任务运行程序grunt冲突。只需卸载Ruby gem,方法是:
gem卸载grunt

快速注意:OSX Mavericks附带安装在“系统”Ruby环境中的grunt版本。如果运行
gem uninstall grunt
时显示一个空白的like,请确保使用的是正确的版本;可能是rbenv全球系统。检查带有
rbenv版本的版本
<代码>rbenv帮助