【发布时间】:2017-12-05 03:38:57
【问题描述】:
我的操作系统是最新的 macOS high sierra。我通过 Homebrew 安装了 elixir 和所有依赖项。我创建了一个新的 Phoenix 应用程序。它显示了一些错误。实时重新加载不起作用。以下是信息。
[error] Can't find executable `mac_listener`
[warn] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.
似乎某些文件更改侦听器服务没有运行。但我不知道如何解决它。
【问题讨论】:
-
如果你手动运行
./deps/fs/priv/mac_listener会发生什么? -
@Dogbert 没有这样的文件或目录。我检查了 deps 文件夹。没有 fs 模块,只有一个 file_system。
-
啊,Phoenix 1.3 中依赖项的名称似乎已更改。如果你运行
./deps/file_system/priv/mac_listener -h会发生什么? -
@Dogbert 它也显示没有这样的文件或目录。我手动检查了 file_system 模块。 priv 文件夹为空。里面什么都没有。
-
而
mix deps.compile file_system有效吗?