克隆后的Laravel项目出现此错误

时间:2019-05-13 16:31:36

标签: php laravel composer-php laravel-5.8

  

警告:require(C:\ Users \ Uvindu Mohotti \ Desktop \ Sample   GIt \ blog / vendor / autoload.php):无法打开流:没有此类文件或   C:\ Users \ Uvindu Mohotti \ Desktop \ Sample GIt \ blog \ artisan中的目录   在第18行       PHP致命错误:require():无法打开所需的'C:\ Users \ Uvindu Mohotti \ Desktop \ Sample GIt \ blog / vendor / autoload.php'   (include_path ='C:\ xampp \ php \ PEAR')在C:\ Users \ Uvindu中   第18行的Mohotti \ Desktop \ Sample GIt \ blog \ artisan

     

严重错误:require():无法打开所需的'C:\ Users \ Uvindu   Mohotti \ Desktop \ Sample GIt \ blog / vendor / autoload.php'   (include_path ='C:\ xampp \ php \ PEAR')在C:\ Users \ Uvindu中   第18行的Mohotti \ Desktop \ Sample GIt \ blog \ artisan

此错误是在php artisan serve之后给出的,但我找不到原因吗?

1 个答案:

答案 0 :(得分:1)

授予相关文件的权限。

参考:How to set up File Permissions for Laravel 5 (and others)