gpt4 book ai didi

ruby - 尝试访问 compass-core-1.0.0.alpha.16/stylesheets/.listen_test 时,compass watch 命令出错

转载 作者:数据小太阳 更新时间:2023-10-29 07:30:16 25 4
gpt4 key购买 nike

我相信这是在升级到 Ruby 2.0.0 之后发生的,然后我重新安装了 compass watch 所需的 gem 。我还安装了 Ruby 1.9.1 并安装了 gems for compass watch 并得到了同样的错误。我试图更改文件 .listen_test 的权限,但它不存在。

这是 --trace:

compass watch --trace

>>> Compass is watching for changes. Press Ctrl-C to Stop.

error sites/all/themes/dr/compass/sass/blog-ie.sass (Line 919 of sites/all/themes/dr/compass/sass/blog.sass: Invalid flag "!important".)

identical sites/all/themes/dr/compass/css/blog-ie.css

error sites/all/themes/dr/compass/sass/blog.sass (Line 919: Invalid flag "!important".)

identical sites/all/themes/dr/compass/css/blog.css

Errno::EACCES on line ["1140"] of /Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb: Permission denied - /Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/compass-core-1.0.0.alpha.16/stylesheets/.listen_test

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1140:in `open'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1140:in `rescue in block in touch'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1136:in `block in touch'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1134:in `each'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/fileutils.rb:1134:in `touch'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:221:in `works?'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `block in usable_and_works?'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `each'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `all?'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `usable_and_works?'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:49:in `block in select_and_initialize'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:47:in `each'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/adapter.rb:47:in `select_and_initialize'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/listener.rb:272:in `initialize_adapter'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/listener.rb:264:in `setup'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/listen-1.1.6/lib/listen/listener.rb:64:in `start!'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/watcher/project_watcher.rb:31:in `watch!'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/commands/watch_project.rb:48:in `perform'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/commands/base.rb:18:in `execute'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/commands/project_base.rb:19:in `execute'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/exec/sub_command_ui.rb:43:in `perform!'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/lib/compass/exec/sub_command_ui.rb:15:in `run!'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/bin/compass:30:in `block in <top (required)>'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/bin/compass:44:in `call'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/gems/compass-1.0.0.alpha.17/bin/compass:44:in `<top (required)>'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/bin/compass:23:in `load'

/Users/ejohnson/.rvm/rubies/ruby-1.9.3-p484/bin/compass:23:in `<main>'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/bin/ruby_executable_hooks:15:in `eval'

/Users/ejohnson/.rvm/gems/ruby-1.9.3-p484@global/bin/ruby_executable_hooks:15:in `<main>'

这是我的本地珍宝:

*** LOCAL GEMS ***

bigdecimal (1.1.0)
breakpoint (2.3.1)
bundler (1.3.5)
bundler-unload (1.0.2)
chunky_png (1.2.9)
compass (1.0.0.alpha.17, 0.12.2)
compass-core (1.0.0.alpha.16)
compass-import-once (1.0.1)
compass-rgbapng (0.2.1)
executable-hooks (1.2.6)
ffi (1.9.3)
fssm (0.2.10)
io-console (0.3)
json (1.5.5)
listen (1.1.6)
minitest (2.5.1)
multi_json (1.8.2)
rake (0.9.2.2)
rb-fsevent (0.9.3)
rb-inotify (0.9.3)
rb-kqueue (0.2.0)
rdoc (3.9.5)
rubygems-bundler (1.4.2)
rvm (1.11.3.8)
sass (3.3.0.rc.2, 3.2.12)
susy (1.0.9)

编辑我通过安装旧版本的 compass (0.12.2) 让 compass watch 正常工作

最佳答案

我发现它适用于:

sudo compass watch

我不确定为什么现在需要 sudo。

关于ruby - 尝试访问 compass-core-1.0.0.alpha.16/stylesheets/.listen_test 时,compass watch 命令出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20621062/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com