2014-06-10 152 views
0

我試圖在Windows安裝咕嚕8機(我通常MAC)咕嚕如何安裝在Windows 8

我已經結點,紅寶石安裝 - 如果我用Ruby -v和節點測試 - v我得到版本號。與

npm install -g grunt-cli 

我已經安裝的呼嚕聲,我得到的NPM HTTP安裝了一個長長的名單。

如果然後咕嚕測試-v我得到

C:/Ruby193/lib/ruby/gems/1.9.1/gems/grunt-0.0.6/lib/grunt/project.rb:18:in `open': No such file or directory - repos (Errno::ENOENT) 
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grunt-0.0.6/lib/grunt/project.rb:18:in `entries' 
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grunt-0.0.6/lib/grunt/project.rb:18:in `generate_files' 
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grunt-0.0.6/lib/grunt/server.rb:13:in `block in <class:Server>' 
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1402:in `configure' 
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grunt-0.0.6/lib/grunt/server.rb:13:in `<class:Server>' 
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grunt-0.0.6/lib/grunt/server.rb:2:in `<module:Grunt>' 
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grunt-0.0.6/lib/grunt/server.rb:1:in `<top (required)>' 
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/grunt-0.0.6/bin/grunt:5:in `<top (required)>' 
    from C:/Ruby193/bin/grun 

回答

0

好像你有一個Ruby寶石安裝在名爲咕嚕。運行gem uninstall grunt,它會卸載grunt gem。 grunt -v不是正確的命令。

如果您在當前工作目錄中有Gruntfile.js,請在命令行上執行以下命令,該命令將執行默認的grunt任務。

grunt