Install Groovy with GVM

When I try to run this command to install Groovy using GVM, I get this error message:

$gvm install groovy Stop! groovy is not a valid candidate. 

Why is this not working? As far as I know, I installed GVM correctly using this:

 $ curl -s get.gvmtool.net | bash 

I'm on a mac

Here is what I see when running gvm help :

 $ gvm help Usage: gvm <command> <candidate> [version] gvm offline <enable|disable> commands: install or i <candidate> [version] uninstall or rm <candidate> <version> list or ls <candidate> use or u <candidate> [version] default or d <candidate> [version] current or c [candidate] outdated or o [candidate] version or v broadcast or b help or h offline <enable|disable> selfupdate [force] flush <candidates|broadcast|archives|temp> candidate : version : where optional, defaults to latest stable if not provided eg: gvm install groovy 
+5
source share
1 answer

Your candidate list is missing. You may have an empty file named $ HOME / .gvm / var / candidates. Try running gvm flush candidates, and then open a new terminal so that gvm initializes. This should make gvm load the candidates file.

+6
source

All Articles