InstallCommand.php errors out when trying to install admin

I can’t install admin from bin/gpm due to errors in InstallCommand.php.

[04:10:19] /home/user/domains/website.com/public_html> bin/gpm install admin

The following dependencies need to be installed...
  |- Package form requires a newer version
  |- Package email requires a newer version
  |- Package login requires a newer version

Update these packages? [y|N] y
PHP Notice:  Trying to get property of non-object in /home/user/domains/website.com/public_html/system/src/Grav/Console/Gpm /InstallCommand.php on line 655
PHP Notice:  Trying to get property of non-object in /home/user/domains/website.com/public_html/system/src/Grav/Console/Gpm /InstallCommand.php on line 657
Preparing to install  [v]
  |- Downloading package...     0%PHP Notice:  Trying to get property of non-object in /home/user/domains/website.com/public_html/system/src/Grav/Console/Gpm /InstallCommand.php on line 689
PHP Notice:  Trying to get property of non-object in /home/user/domains/website.com/public_html/system/src/Grav/Console/Gpm /InstallCommand.php on line 689
PHP Notice:  Trying to get prope rty of non-object in /home/user/domains/website.com/public_html/system/src/Grav/Console/Gpm /InstallCommand.php on line 690
Installation aborted
---

I was able to install form and email separately, but trying to install login throws a fatal error.

PHP Fatal error:  Uncaught Error: Call to undefined method Grav\Console\Gpm\InstallCommand::getGrav() in /home/user/domains/website.com/public_html/system/src/Grav/Console/Gpm /InstallCommand.php:258
Stack trace:
#0 /home/user/domains/website.com/public_html/system/src/Grav/Console/Gpm /InstallCommand.php(149): Grav\Console\Gpm\InstallCommand->processDependencies(Array)
#1 /home/user/domains/website.com/public_html/system/src/Grav/Console/Con soleCommand.php(26): Grav\Console\Gpm\InstallCommand->serve()
#2 /home/user/domains/website.com/public_html/vendor/symfony/console/Comm and/Command.php(259): Grav\Console\ConsoleCommand->execute(Object(Symfony\Component\Console\ Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /home/user/domains/website.com/public_html/vendor/symfony/console/Appl ication.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Componen t\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\Co nsoleOutput))
#4 /home/use in /home/user/domains/website.com/public_html/system/src/Grav/Console/Gpm /InstallCommand.php on line 258
---

Is this the latest Grav release, or did you download from github directly?

Recreated in the github develop branch, please use the latest stable Grav version you can download on the site, or checkout the latest release tag, as develop is not stable