I am running this command:
C:\xampp\htdocs\notebook>php artisan serve
However I get this error:
Warning: require(C:\\xampp\\htdocs\\notebook\\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\\xampp\\htdocs\\notebook\\bootstrap\\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\\xampp\\htdocs\\notebook\\bootstrap/../vendor/autoload.php' (include_path='.;C:\\xampp\\php\\PEAR') in C:\\xampp\\htdocs\\notebook\\bootstrap\\autoload.php on line 17
创建项目或克隆现有项目后,应运行composer install
命令,该命令将安装所有依赖项并创建autoload.php
文件。
That is an import error.
Everytime you have one of these, you should try to run composer dump-autoload
.
Most of the time, this command will fix your imports.
It looks like you might not have installed the required dependencies yet. You should do so using the composer
package manager, like so:
C:\ProgramData\ComposerSetup\bin\composer install
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.