thedevdojo / voyager-themes

Theme Hook for Voyager
81 stars 23 forks source link

require.voyager-themes is invalid #33

Open RoshanJafri opened 3 years ago

RoshanJafri commented 3 years ago

When trying to install like this

php artisan hook:install voyager-themes

I get this error:

require.voyager-themes is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package 
name can be words separated by -, . or _. The complete name should match "^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-
z0-9]+)*$".

  at C:\xampp\htdocs\royal\vendor\composer\composer\src\Composer\Package\Loader\RootPackageLoader.php:147
    143▕         foreach (array_keys(BasePackage::$supportedLinkTypes) as $linkType) {
    144▕             if (isset($config[$linkType])) {
    145▕                 foreach ($config[$linkType] as $linkName => $constraint) {
    146▕                     if ($err = ValidatingArrayLoader::hasPackageNamingError($linkName, true)) {
  ➜ 147▕                         throw new \RuntimeException($linkType.'.'.$err);
    148▕                     }
    149▕                 }
    150▕             }
    151▕         }

  1   C:\xampp\htdocs\royal\vendor\composer\composer\src\Composer\Factory.php:368
      Composer\Package\Loader\RootPackageLoader::load("Composer\Package\RootPackage", "C:\xampp\htdocs\royal")    

  2   C:\xampp\htdocs\royal\vendor\composer\composer\src\Composer\Factory.php:595
      Composer\Factory::createComposer(Object(Composer\IO\ConsoleIO))