Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
510 views
in Technique[技术] by (71.8m points)

sass - Yeoman error: "Errno::EACCES on line ["897"] of C: Permission denied"

I upgraded my hardware yesterday and fresh installed Win 8.1. This error is killing me since then. I already lost full day of work trying to figure out what's going on. I never encountered this on my Mac or in my old Win 7 machine.

Setting up a new project with yo webapp using Bootstrap and Modernizr works great. Server would fire-up and I can see my updates livereload. But, setting up a new project with Compass and SASS included would prevent me from starting local server and throw this error:

D:est>grunt serve
Running "serve" task

Running "clean:server" (clean) task

Running "concurrent:server" (concurrent) task

Running "copy:styles" (copy) task

Done, without errors.
    Warning: Errno::EACCES on line ["897"] of C: Permission denied - (D:/test/.t
mp/styles/main.css20140323-6060-d9r9eo, D:/test/.tmp/styles/main.css)
    Run with --trace to see the full backtrace Use --force to continue.

    Aborted due to warnings.


Execution Time (2014-03-23 20:05:00 UTC)
concurrent:server  4.8s  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100%
Total 4.8s

D:est>

I updated Compass and SASS to latest version, reinstalled Yeoman & Ruby, and tried bunch of other small tweaks. Nothing worked.

Any ideas what else I could try?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I have found solution for this issue. I guess this might help with other similar problems running grunt server. This is what did it for me:

Uninstall SASS

gem uninstall sass

Uninstall COMPASS

gem uninstall compass

Install --pre COMPASS version

gem install compass --pre

Install --pre SASS version

gem install sass --pre

For some reason only running task in this order worked for me. I hope this helps.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...