Yeoman error:“Errno :: EACCES on line [”897“] of C:Permission denied” [英] Yeoman error: "Errno::EACCES on line ["897"] of C: Permission denied"
问题描述
使用设置新项目yo webapp
使用 Bootstrap 和 Modernizr 效果很好。服务器会启动,我可以看到我的更新livereload。但是,使用 Compass和SASS 设置新项目会阻止我启动本地服务器并抛出此错误:
D:\test> grunt serve
运行serve任务
运行clean:server(clean)任务
运行并发:服务器(并发)任务
运行copy:styles(复制)任务
完成,没有错误。
警告:Errno :: EACCES在C [[897]]行上:Permission denied - (D:/test/.t
mp / styles / main.css20140323-6060-d9r9eo,D:/ test / .tmp / styles / main.css)
使用--trace运行以查看完整的回溯使用--force继续。
由于警告而中止。
执行时间(2014-03-23 20:05:00 UTC)
并发:server 4.8s■■■■■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■100%
合计4.8s
D:\试验>
我将Compass和SASS更新到最新版本,重新安装了Yeoman& Ruby,并尝试了一些其他小小的调整。没有任何工作。
任何想法我可以尝试什么?
我找到了解决这个问题的方法。我想这可能有助于运行grunt服务器的其他类似问题。这是对我的帮助:
卸载SASS
gem卸载sass
卸载COMPASS
gem uninstall compass
安装--pre COMPASS版本
gem install compass --pre
安装--pre SASS版本
gem install sass --pre
由于某些原因,只有按此顺序运行的任务才能为我工作。我希望这有助于。
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:\test>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:\test>
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?
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.
这篇关于Yeoman error:“Errno :: EACCES on line [”897“] of C:Permission denied”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!