【问题标题】:Brunch / Phoenix error copying Thumbs.db早午餐 / Phoenix 复制 Thumbs.db 时出错
【发布时间】:2017-04-05 04:09:44
【问题描述】:

在 Windows 8 上使用 Phoenix,当我运行 mix phoenix.server 时,它会启动 Brunch 但会出现错误

Copying of web\static\assets\images\Thumbs.db failed. Error: EPERM: operation not permitted, 
open C:\Users\myname\phoenix\appname\priv\static\images\Thumbs.db`. 

然后它执行一个永无止境的info: compiling 循环,我的 javascript 出现各种错误。

在写这篇文章的时候,我再次尝试了,没有做任何改变,现在我得到了错误

(File.CopyError) could not copy recursively from "C:/.../test/priv" to 
"C:/.../test/_build/dev/lib/test/priv". C:/.../Thumbs.db: permission denied

这突然出现了——不知道我做了什么会导致它。有没有人有任何想法,比如可能以某种方式给予正确的权限,或者在早午餐中忽略 Thumbs.db,或者其他什么?谢谢

编辑:好吧,我认为我在早午餐中使用约定忽略了 Thumbs.db,因为我能够执行独立的 brunch build 并且它可以编译,但我仍然得到上面的 (File.CopyError)。正在考虑根除所有 Thumbs.db 文件,但肯定有更好的解决方案。

Editedit:我删除了所有 Thumbs.db(或至少尝试使用磁盘清理/“删除缩略图”),也禁用了缩略图,但我仍然收到第二个错误。也许是时候换个新操作系统了?

【问题讨论】:

    标签: windows phoenix-framework brunch


    【解决方案1】:

    好吧,从一个新的 phoenix 项目(粘贴旧代码)重新开始修复它。仍然欢迎任何关于导致它的原因或其他解决方法的想法。

    【讨论】:

      猜你喜欢
      • 2016-05-15
      • 2018-07-17
      • 1970-01-01
      • 2013-04-21
      • 2015-09-03
      • 2018-08-27
      • 2016-01-19
      • 1970-01-01
      • 2013-11-10
      相关资源
      最近更新 更多