Closed mtshikomba closed 5 years ago
InvalidArgumentException : Could not find a matching version of package generate-migrations-hook. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).
at C:\laragon\www\iamhairsalon\vendor\composer\composer\src\Composer\Command\InitCommand.php:759 755| implode("\n ", $similar) 756| )); 757| } 758|
759| throw new \InvalidArgumentException(sprintf( 760| 'Could not find a matching version of package %s. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (%s).', 761| $name, 762| $this->getMinimumStability($input) 763| ));
Exception trace:
1 Composer\Command\InitCommand::findBestVersionAndNameForPackage(Object(Symfony\Component\Console\Input\ArrayInput), "generate-migrations-hook", "7.1.20", "stable") C:\laragon\www\iamhairsalon\vendor\composer\composer\src\Composer\Command\InitCommand.php:401
2 Composer\Command\InitCommand::determineRequirements(Object(Symfony\Component\Console\Input\ArrayInput), Object(Larapack\Hooks\RawOutput), "7.1.20", "stable") C:\laragon\www\iamhairsalon\vendor\composer\composer\src\Composer\Command\RequireCommand.php:136
Please use the argument -v to see more details.
The error was caused because i tried to install the hook prior to installing voyager (php artisan voyager:install).
InvalidArgumentException : Could not find a matching version of package generate-migrations-hook. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).
at C:\laragon\www\iamhairsalon\vendor\composer\composer\src\Composer\Command\InitCommand.php:759 755| implode("\n ", $similar) 756| )); 757| } 758|
Exception trace:
1 Composer\Command\InitCommand::findBestVersionAndNameForPackage(Object(Symfony\Component\Console\Input\ArrayInput), "generate-migrations-hook", "7.1.20", "stable") C:\laragon\www\iamhairsalon\vendor\composer\composer\src\Composer\Command\InitCommand.php:401
2 Composer\Command\InitCommand::determineRequirements(Object(Symfony\Component\Console\Input\ArrayInput), Object(Larapack\Hooks\RawOutput), "7.1.20", "stable") C:\laragon\www\iamhairsalon\vendor\composer\composer\src\Composer\Command\RequireCommand.php:136
Please use the argument -v to see more details.