Error: Version 1.11 of dune is not supported

Error: Version 1.11 of dune is not supported

我想在我的 Mac 上测试这个项目:https://github.com/nt591/monkey-ocaml。下载项目后,dune runtest 返回以下错误:

$ dune runtest
File "dune-project", line 1, characters 11-15:
1 | (lang dune 1.11)
               ^^^^
Error: Version 1.11 of dune is not supported.
Supported versions:
- 0.0
- 1.0 to 1.6

然后,我关注了,但是它返回了这个:

$ dnf remove dune
-bash: dnf: command not found

我必须安装 dnf 吗?有人能帮忙吗?

已在评论中解决,但为了防止其他人无意中发现,duneopam 一起安装但已过时,因此修复很简单 opam update && opam upgrade

如果 dune 是以其他方式安装的,强烈建议您卸载该实例并改用“opam”安装它。