Yeoman错误:"Errno :: EACCES on the line ["897"] C:Permission denied"

Kli*_*rko 13 sass gruntjs yeoman compass-sass

我昨天升级了硬件并重新安装了Win 8.1.从那以后,这个错误让我感到害怕.我已经失去了一整天的工作,试图弄清楚发生了什么.我从未在我的Mac或旧的Win 7机器上遇到过这种情况.

yo webapp使用BootstrapModernizr设置新项目效果很好.服务器会启动,我可以看到我的更新livereload.但是,设置包含Compass和SASS的新项目会阻止我启动本地服务器并抛出此错误:

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>
Run Code Online (Sandbox Code Playgroud)

我更新了Compass和SASS到最新版本,重新安装了Yeoman和Ruby,并尝试了一些其他的小调整.没有任何效果.

任何想法我还能尝试什么?

Kli*_*rko 34

我找到了解决这个问题的方法.我想这可能有助于运行grunt服务器的其他类似问题.这就是为我做的事情:

卸载SASS

gem uninstall sass
Run Code Online (Sandbox Code Playgroud)

卸载COMPASS

gem uninstall compass
Run Code Online (Sandbox Code Playgroud)

安装--pre COMPASS版本

gem install compass --pre
Run Code Online (Sandbox Code Playgroud)

安装--pre SASS版本

gem install sass --pre
Run Code Online (Sandbox Code Playgroud)

出于某种原因,只有按此顺序运行任务对我有用.我希望这有帮助.