“ Errno :: EACCESS ...权限被拒绝”;跑步指南针手表 [英] "Errno::EACCESS...permission denied" running compass watch
问题描述
我刚刚将项目文件迁移到 D:
驱动器上的新PC上,而我的程序(Git,Node Js,Ruby等)位于 C:
驱动器。
I just migrated my project files onto a new PC on the D:
drive whilst my programs (Git, Node Js, Ruby, etc) are on the C:
drive.
我试过运行指南针手表
编辑SASS文件,但遇到此错误:
I have tried to run compass watch
after editing a SASS file, but encounter this error:
Errno::EACCES on line ["897"] of C: Permission denied - <D:/project_dir/stylesheets/app.css20140323-10532-gziux, D:/project_dir/stylesheets/app.css>
Run with --trace to see the full backtrace
我是Ruby的新手在命令行中(因为我仅将其用于Web开发)。
I'm a novice with Ruby at the command line (as I only use it for web development purposes). What do I need to do to allow the permissions?
请问我是否可以提供更多信息。
Please let me know if I can provide more information.
编辑:
这是运行罗盘监视--trace $
后返回的内容:
Here's what was returned after running compass watch --trace
:
D:\project_dir>compass watch --trace
>>> Change detected at 21:53:53 to: app.scss
overwrite stylesheets/app.css
Errno::EACCES on line ["897"] of C: Permission denied - (D:/project_dir/stylesheets/app.css20140323-14712-11v62k7, D:/project_dir/stylesheets/app.css)
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sass-3.2.18/lib/sass/util.rb:897:in `atomic_create_and_write_file'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/actions.rb:58:in `write_file'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/compiler.rb:143:in `compile'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/compiler.rb:118:in `compile_if_required'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/compiler.rb:103:in `block (2 levels) in run'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/compiler.rb:101:in `each'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/compiler.rb:101:in `block in run'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/compiler.rb:126:in `timed'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/compiler.rb:100:in `run'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/commands/watch_project.rb:147:in `recompile'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/commands/watch_project.rb:68:in `perform'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/commands/base.rb:18:in `execute'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/commands/project_base.rb:19:in `execute'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/lib/compass/exec/sub_command_ui.rb:15:in `run!'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/bin/compass:30:in `block in <top (required)>'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/bin/compass:44:in `call'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.4/bin/compass:44:in `<top (required)>'
C:/Ruby200-x64/bin/compass:23:in `load'
C:/Ruby200-x64/bin/compass:23:in `<main>'
>>> Compass is polling for changes. Press Ctrl-C to Stop.
虽然我不知道该怎么做。
I don't know what to make from that though.
通过阅读( https://github.com/chriseppstein/compass / issues / 1406 )我认为这与 Ruby和amp;的权限或PATH有关。 Ruby Gems ,但我不知道该怎么做。
From doing some reading (https://github.com/chriseppstein/compass/issues/1406) I believe it's something to do with the permissions or PATH for 'Ruby' & 'Ruby Gems' but I don't know what to do to resolve this.
推荐答案
在32或64位Windows中工作时,我做了Min Ren的建议,但我还必须手动清理gem资料库( C:\Users\myusername\.gem\specs\rubygems.org卸载步骤后,所有sass和罗盘gemspec文件的%443\quick\Marshal.4.8
)。我还在指南针之前安装了sass。
To get it to work in 32 or 64bit windows, I done what Min Ren suggested but I also had to manually clean the gem repository (C:\Users\myusername\.gem\specs\rubygems.org%443\quick\Marshal.4.8
) of all the sass and compass gemspec files after the uninstall steps. I also installed sass before compass.
gem uninstall compass
gem uninstall sass
手动清理.gem
gem install sass --version "3.2.10"
gem install compass --version "0.12.2"
这篇关于“ Errno :: EACCESS ...权限被拒绝”;跑步指南针手表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!