autoload.php missing from vendor folder with Cakephp 3.0

有些话、适合烂在心里 提交于 2019-12-22 01:15:16

问题


I have installed fresh package of Cakephp 3.0, I have followed this tutorial, a fresh package has been installed on my system, but when I try to run the server then I get this error:

PHP Warning: require(/var/www/html/bookmarker/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/bookmarker/bin/cake.php on line 31

And these are the commands I have used:

curl -s https://getcomposer.org/installer | php
php composer.phar create-project --prefer-dist cakephp/app bookmarker
cd bookmarker/
bin/cake server

When I tried the last command I got that error.


回答1:


You can recreate your project autoload by this method:

  1. Open your terminal,
  2. cd /var/www/html/bookmarker,
  3. composer dumpautoload

Give it a try.



来源:https://stackoverflow.com/questions/44106575/autoload-php-missing-from-vendor-folder-with-cakephp-3-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!