我的操作系统是最新的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.
Run Code Online (Sandbox Code Playgroud)
似乎某些文件更改侦听器服务未运行.但我不知道如何解决它.
小智 10
我通过重新安装命令行工具解决了这个问题.打开bash,然后输入:
xcode-select --install
Run Code Online (Sandbox Code Playgroud)
然后,运行mix deps.compile file_system以重新编译file_system模块.完成.