Error checking sbt installation

I am new to Scala and just downloaded sbt on my Mac.

After installation using the following command -

brew install sbt

I am trying to verify that the installation completed successfully by running this command -

sbt --version

I expect something like -

sbt launcher version 0.13.0

but instead we get the following:

sbt --version
[error] Not a valid command: version (similar: session)
[error] version
[error]        ^

I tried uninstalling and reinstalling sbt on my machine, but in vain.

Can someone tell me what I can skip here?

thanks!

+4
source share
1 answer

The SBT launcher script simply does not support --version. Run sbt -hto view supported options. To show the SBT version used for the current project, run sbt "show sbtVersion".

+3
source

Source: https://habr.com/ru/post/1612399/


All Articles