简体   繁体   English

更新Laravel作曲器时找不到Console \\ ConsoleMakeCommand

[英]Console\ConsoleMakeCommand not found when updating Laravel composer

I've noticed some errors this morning trying to update composer in Laravel 4.2 我注意到今天早晨尝试在Laravel 4.2更新作曲家时出现了一些错误

Error Output: PHP Fatal error:  Class 'Illuminate\Foundation\Console\ConsoleMakeCommand' n  
  ot found in /usr/local/var/www/avionerd/vendor/indatus/dispatcher/src/Indatus/Dispatcher/C  
  ommands/Make.php on line 21

What is wrong, and how do I fix it? 有什么问题,我该如何解决?

For me the problem was that I ran composer using PHP5.3, ran into issues, and then ran it again using PHP5.5 without first clearing the previous vendor files. 对我来说,问题是我使用PHP5.3运行了作曲家,遇到了问题,然后又使用PHP5.5重新运行了它,而没有先清除以前的供应商文件。 Deleting the vendor folder solved the problem. 删除供应商文件夹可以解决此问题。

UPDATE 更新

Also, i was running composer in two different ways. 另外,我以两种不同的方式运行作曲家。 In the first case I ran "composer" and in the other case I ran "php composer.phar". 在第一种情况下,我运行了“ composer”,在另一种情况下,我运行了“ php composer.phar”。 I stuck with "php composer.phar" and everything worked as it should. 我坚持使用“ php composer.phar”,一切正常进行。

I ran into the same problem. 我遇到了同样的问题。

Make sure that you reference the latest release of dispatcher in your composer.json file (instead of dev-master): 确保在composer.json文件(而不是dev-master)中引用最新版本的dispatcher:

"indatus/dispatcher": "1.*"

Then remove your vendor/ directory and do a composer update again. 然后删除您的供应商/目录并再次进行作曲家更新。 That's what worked for me. 那对我有用。

Thanks! 谢谢! The problem was actually solved both removing /vendor and upgrading to latest indatus/dispatcher version "indatus/dispatcher": "1.*" 实际上,解决了该问题,删除了/ vendor并升级到了最新的indatus / dispatcher版本“ indatus / dispatcher”:“ 1. *”

Thanks! 谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM