使用自制软件在 macOS 上安装 smlnj 不起作用

Installing smlnj on macOS using homebrew not working

我 运行 在尝试使用自制软件安装 sml 时出现以下错误

xxxxs-iMac:~ mo$ brew install smlnj

Error: No available formula with the name "smlnj"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

我该如何解决这个问题?

我遇到了同样的问题。为我修复它的是使用

brew cask install smlnj

而不是

brew install smlnj