I'm on an Amazon Linux machine.
$ composer global require drush/drush Changed current directory to /home/ec2-user/.composer Using version ^8.1 for drush/drush ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Generating autoload files
Then I added composer into the PATH so it reads like this:
$ echo $PATH /home/ec2-user/.composer/vendor/bin:/home/ec2-user/.composer/vendor/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin
Then if I try this I get an error:
$ composer show drush/drush [InvalidArgumentException] Package drush/drush not found show [--all] [-i|--installed] [-p|--platform] [-a|--available] [-s|--self] [-N|--name-only] [-P|--path] [-t|--tree] [-l|--latest] [-o|--outdated] [-D|--direct] [--] [<package>] [<version>]
And if I run the drush command the cursor stays there waiting:
What did I miss?