Yeoman错误:“ C的行\[“ 897”\]上的Errno EACCES:权限被拒绝”

上海社会科学院 CSS

神无

2020-04-07

我昨天升级了硬件,并重新安装了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>

我将Compass和SASS更新到最新版本,重新安装了Yeoman&Ruby,并尝试了一堆其他小的调整。没事。

还有什么我可以尝试的想法吗?

第4092篇《Yeoman错误:“ C的行\[“ 897”\]上的Errno EACCES:权限被拒绝”》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点

2个回答
蛋蛋猿 2020.04.07

我已经找到解决此问题的方法。我想这可能有助于解决运行grunt服务器的其他类似问题。这就是为我做的:

卸载SASS

gem uninstall sass

卸载COMPASS

gem uninstall compass

安装--pre COMPASS版本

gem install compass --pre

安装--pre SASS版本

gem install sass --pre

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

Gil伽罗小宇宙 2020.04.07

SASS 3.2.19试用中已解决问题 gem update compass

问题类别

JavaScript Ckeditor Python Webpack TypeScript Vue.js React.js ExpressJS KoaJS CSS Node.js HTML Django 单元测试 PHP Asp.net jQuery Bootstrap IOS Android