当我尝试使用 sass 时,我得到“权限被拒绝”。我正在使用 Sublime Text 2、当前版本的 Ruby 和bone theme。
这是我的终端/代码的屏幕截图:
这是我在 SublimeText 中保存时的内容:
[Errno 2] No such file or directory
[cmd: [u'sass', u'--update', u'/Users/jschreiber/sites/wp-content/themes/eddiemachado-bones-405349e/library/scss/_base.scss:/Users/jschreiber/sites/wp-content/themes/eddiemachado-bones-405349e/library/scss/_base.css', u'--stop-on-error', u'--no-cache']]
[dir: /Users/jschreiber/sites/wp-content/themes/eddiemachado-bones-405349e/library/scss]
[path: /usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]
[Finished]
这是我的gem env
:
administrators-MacBook-Air:~ jschreiber$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.7
- RUBY VERSION: 2.0.0 (2013-06-27 patchlevel 247) [x86_64-darwin12.3.0]
- INSTALLATION DIRECTORY: /Users/jschreiber/.rvm/gems/ruby-2.0.0-p247
- RUBY EXECUTABLE: /Users/jschreiber/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
- EXECUTABLE DIRECTORY: /Users/jschreiber/.rvm/gems/ruby-2.0.0-p247/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-12
- GEM PATHS:
- /Users/jschreiber/.rvm/gems/ruby-2.0.0-p247
- /Users/jschreiber/.rvm/gems/ruby-2.0.0-p247@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
当我按照崇高的文本说明运行 subl 时 - 仍然出现错误:
administrators-MacBook-Air:~ jschreiber$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
ln: /Users/jschreiber/bin/subl: No such file or directory
administrators-MacBook-Air:~ jschreiber$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
administrators-MacBook-Air:~ jschreiber$ subl
administrators-MacBook-Air:~ jschreiber$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
ln: /Users/jschreiber/bin/subl: No such file or directory
administrators-MacBook-Air:~ jschreiber$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
ln: /usr/local/bin/subl: File exists
administrators-MacBook-Air:~ jschreiber$ subl
administrators-MacBook-Air:~ jschreiber$ sites/wp-content/themes/eddiemachado-bones-405349e/library/scss
-bash: sites/wp-content/themes/eddiemachado-bones-405349e/library/scss: is a directory
administrators-MacBook-Air:~ jschreiber$ sass --watch style.scss:../css/style.css
>>> Sass is watching for changes. Press Ctrl-C to stop.
directory ../css
Errno::EACCES: Permission denied - ../css
Use --trace for backtrace.