[英]/autoload.php): failed to open stream: No such file or directory in
enter image description here 在此处输入图片说明
D:\jasmin\laravel\shop>php artisan serve
PHP Warning: require(D:\jasmin\laravel\shop/vendor/autoload.php): failed to open stream: No such file or directory in D:\jasmin\laravel\shop\artisan on line 18
Warning: require(D:\jasmin\laravel\shop/vendor/autoload.php): failed to open stream: No such file or directory in D:\jasmin\laravel\shop\artisan on line 18
PHP Fatal error: require(): Failed opening required 'D:\jasmin\laravel\shop/vendor/autoload.php' (include_path='D:\jasmin\xamp\php\PEAR') in D:\jasmin\laravel\shop\artisan on line 18
Fatal error: require(): Failed opening required 'D:\jasmin\laravel\shop/vendor/autoload.php' (include_path='D:\jasmin\xamp\php\PEAR') in D:\jasmin\laravel\shop\artisan on line 18
Try to run from command line 尝试从命令行运行
composer install
or composer update
Composer Update
作曲家更新
You just need to run composer update
to update your dependencies as they are specified in this file: composer.json
. 您只需要运行
composer update
即可更新此文件中指定的依赖项: composer.json
。 The command will generate vendor/autoload.php
, too. 该命令也会生成
vendor/autoload.php
。
Laravel documentation
Laravel文档
Laravel utilizes Composer to manage its dependencies.
Laravel利用Composer来管理其依赖项。 First, download a copy of the
composer.phar
.首先,下载
composer.phar
的副本。 Once you have the PHAR archive, you can either keep it in your local project directory or move tousr/local/bin
to use it globally on your system.获得PHAR归档文件后,可以将其保存在本地项目目录中,也可以移至
usr/local/bin
以在系统上全局使用它。On Windows, you can use the Composer Windows installer .
在Windows上,您可以使用Composer Windows安装程序 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.