我刚刚安装了crystal和幸运框架。我在Windows10上使用WSL2。这是错误消息
Unhandled exception: Unable to get file info: '/mnt/c/Python27/overmind': Input/output error (File::Error)
from /home/sashacode/.asdf/installs/crystal/0.36.1/share/crystal/src/crystal/system/unix/file.cr:44:9 in 'info?'
from /home/sashacode/.asdf/installs/crystal/0.36.1/share/crystal/src/file.cr:132:5 in 'info?'
from /home/sashacode/.asdf/installs/crystal/0.36.1/share/crystal/src/process/executable_path.cr:32:12 in 'is_executable_file?'
from /home/sashacode/.asdf/installs/crystal/0.36.1/share/crystal/src/process/executable_path.cr:49:10 in 'find_executable'
from /home/sashacode/apps/lucky_cli/src/lucky_cli/process_runner.cr:26:9 in 'installed?'
from /home/sashacode/apps/lucky_cli/src/lucky_cli/process_runner.cr:22:24 in 'installed_process_runners'
from /home/sashacode/apps/lucky_cli/src/lucky_cli/process_runner.cr:13:20 in 'start'
from /home/sashacode/apps/lucky_cli/src/lucky_cli/process_runner.cr:12:5 in 'start'
from /home/sashacode/apps/lucky_cli/src/dev.cr:5:5 in 'call'
from /home/sashacode/apps/lucky_cli/src/dev.cr:4:3 in 'call'
from /home/sashacode/apps/lucky_cli/src/lucky.cr:30:3 in '__crystal_main'
from /home/sashacode/.asdf/installs/crystal/0.36.1/share/crystal/src/crystal/main.cr:110:5 in 'main_user_code'
from /home/sashacode/.asdf/installs/crystal/0.36.1/share/crystal/src/crystal/main.cr:96:7 in 'main'
from /home/sashacode/.asdf/installs/crystal/0.36.1/share/crystal/src/crystal/main.cr:119:3 in 'main'
from __libc_start_main
from _start
from ???发布于 2021-06-25 23:33:25
幸运的是,在使用WSL2 https://luckyframework.org/guides/getting-started/installing#process-manager时,实际上不推荐使用Overmind
有关更多信息,请参阅Overmind上的此问题https://github.com/DarthSim/overmind/issues/88
我还没有和Lucky一起使用过WSL,但我想Forego或Foreman可能会更好。
为了了解更多的背景知识,Lucky使用了一个进程管理器来启动Crystal dev服务器和webpack开发服务器,因为Lucky默认情况下附带了webpack (通过Laravel Mix)。
https://stackoverflow.com/questions/66829927
复制相似问题