2017-05-22 07:06
浏览 138

CakePHP 3.0中供应商文件夹中缺少autoload.php

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 | 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.

图片转代码服务由CSDN问答提供 功能建议

我已经安装了Cakephp 3.0的新包,我已经按照本教程,我的系统上安装了一个全新的软件包,但是当我尝试运行服务器时,我收到此错误:< / p>

PHP警告:require(/var/www/html/bookmarker/vendor/autoload.php):无法打开流:/ var /中没有此类文件或目录 www / html / bookmarker / bin / cake.php第31行


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

当我尝试上一个命令时 我收到了这个错误。

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dpjj4763 2017-05-22 07:19

    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.

    解决 无用
    打赏 举报

相关推荐 更多相似问题