我在我的项目Yeoman中使用,突然咕噜声的服务正在中止此任务:并发:服务器。这是错误:
Running "concurrent:server" (concurrent) task
Warning: /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb:62:in `file?': Insecure operation - file? (SecurityError)
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb:62:in `block (2 levels) in contains_requirable_file?'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb:62:in `each'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb:62:in `any?'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb:62:in `block in contains_requirable_file?'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb:60:in `each'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb:60:in `any?'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb:60:in `contains_requirable_file?'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/specification.rb:925:in `block in find_inactive_by_path'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/specification.rb:924:in `each'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/specification.rb:924:in `find'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/specification.rb:924:in `find_inactive_by_path'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems.rb:185:in `try_activate'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
from /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /Users/ograbek/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:9:in `<main>' Use --force to continue.
如果我使用--force标志服务器启动但它无法再找到样式表。我用: grunt-cli v0.1.13 grunt v0.4.5
编辑:这似乎是grunt-contrib-compass的问题。当我只是运行咕噜指南针时,我得到了同样的错误。
编辑:当我运行grunt serve --verbose时,我看到:
Running "compass:server" (compass) task
Verifying property compass.server exists in config...OK
File: [no files]
Options: sassDir="app/styles", cssDir=".tmp/styles", generatedImagesDir=".tmp/images/generated", imagesDir="app/images", javascriptsDir="app/scripts", fontsDir="app/styles/fonts", importPath="app/bower_components", httpImagesPath="/images", httpGeneratedImagesPath="/images/generated", httpFontsPath="/styles/fonts", relativeAssets=false, assetCacheBuster=false, raw="Sass::Script::Number.precision = 10\n", debugInfo
Warning: Command failed: /Users/ograbek/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb:62:in `file?': Insecure operation - file? (SecurityError)
文件:[没有文件] - 也许这是一个问题?
答案 0 :(得分:0)
原来这是我的环境问题。 Grunt以错误的权限运行。