2017-10-05 34 views
0

SCSSファイルをコンパイルしようとしていますが、このエラーが発生します。これは、Windows 10 Creator Updateの前に正常に機能していたため、新しいものです。SassがSCSSをコンパイルしない(EACCESエラー)

はここでエラーです:

$ sass --no-cache --update --trace app.scss:app.css 
    c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb:516:in `initialize': Permission denied @ rb_sysopen - appp.css (Errno::EACCES) 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb:516:in `open' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb:516:in `write_file' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb:503:in `update_stylesheet' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb:209:in `each' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb:209:in `update_stylesheets' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/plugin.rb:82:in `update_stylesheets' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/exec/sass_scss.rb:340:in `watch_or_update' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/exec/sass_scss.rb:51:in `process_result' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/exec/base.rb:52:in `parse' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/lib/sass/exec/base.rb:19:in `parse!' 
      from c:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.4.25/bin/sass:13:in `<top (required)>' 
      from c:/Ruby24-x64/bin/sass:23:in `load' 
      from c:/Ruby24-x64/bin/sass:23:in `<main>' 

コンパイラは失敗し、これは私が得たものであるところ、私がチェック:

513 def write_file(fileName, content) 
514  flag = 'w' 
515  flag = 'wb' if Sass::Util.windows? && options[:unix_newlines] 
516  File.open(fileName, flag) do |file| 
517  file.set_encoding(content.encoding) unless Sass::Util.ruby1_8? 
518  file.print(content) 
519  end 
520 end 

答えて

0

ただ、問題を発見しました。どんな理由であれ、ファイルがスペースのあるパスにあれば動作しません。私は "安全なアドレス"にフォルダを移動し、それは魅力のように動作します。

関連する問題