0

sass を使用しようとすると、「許可が拒否されました」と表示されます。Sublime Text 2、現在のバージョンの Ruby、およびbones テーマを使用しています。

これが私の端末/コードのスクリーンショットです:

ここに画像の説明を入力

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.
4

1 に答える 1