我在 Windows 7 上运行 Rakudo Star 2019.03.1,Cro 由zef
. 在Cro 网站上的入门部分之后,以下内容应该有效:
cro stub 命令会为您生成 stub 服务,以便更快地启动并使用更好的默认值。这里我们用它来创建一个简单的 HTTP 服务,ID 为 hello,在 hello 目录下:
cro stub http hello hello
...实际上确实有效,它为项目生成了很多文件,包括该.cro.yml
文件,我假设它是服务的中心描述文件。但是,如果我尝试遵循文档并运行cro run
(我假设从hello
目录内部):
cro run 命令将启动您的服务(如果您更改文件,则会自动重新启动服务):
cro run
...服务未启动,但cro
出现错误:
A react block:
in sub run-services at C:\rakudo\share\perl6\site\sources\709F4B18755ADE6922C88B8C44A0930A5DDD77C9 (Cro::Tools::CLI) line 227
in sub MAIN at C:\rakudo\share\perl6\site\sources\709F4B18755ADE6922C88B8C44A0930A5DDD77C9 (Cro::Tools::CLI) line 199
in block <unit> at C:\rakudo\share\perl6\site\resources\C1E87B0F084684C12CD87240AE4C12E746174570 line 1
in sub MAIN at C:\rakudo\share\perl6\site\bin\cro line 3
in block <unit> at C:\rakudo\share\perl6\site\bin\cro line 1
Died because of the exception:
no such file or directory
in any at C:\rakudo\share/perl6/runtime/CORE.d.setting.moarvm line 1
in sub run-services at C:\rakudo\share\perl6\site\sources\709F4B18755ADE6922C88B8C44A0930A5DDD77C9 (Cro::Tools::CLI) line 227
in sub MAIN at C:\rakudo\share\perl6\site\sources\709F4B18755ADE6922C88B8C44A0930A5DDD77C9 (Cro::Tools::CLI) line 199
in block <unit> at C:\rakudo\share\perl6\site\resources\C1E87B0F084684C12CD87240AE4C12E746174570 line 1
in sub MAIN at C:\rakudo\share\perl6\site\bin\cro line 3
in block <unit> at C:\rakudo\share\perl6\site\bin\cro line 1
不幸的是,此错误消息没有对我说话。我想念什么?