警告:无法打开流:第17行的C:\ wamp \ www \ laravel \ bootstrap \ autoload.php中没有此类文件或目录 [英] Warning: failed to open stream: No such file or directory in C:\wamp\www\laravel\bootstrap\autoload.php on line 17
问题描述
- Windows 7
- WAMP服务器
- PHP 5.3.13
- Apache 2.2.12
- MySQL 5.5.24
- Windows 7
- WAMP server
- PHP 5.3.13
- Apache 2.2.12
- MySQL 5.5.24
我安装了laravel,试图运行URL
I installed laravel, trying to run the URL
http://localhost/laravel/public
autoload.php
define('LARAVEL_START', microtime(true)); require __DIR__.'/../vendor/autoload.php'; if (file_exists($compiled = __DIR__.'/compiled.php')){ require $compiled; } Illuminate\Support\ClassLoader::register(); if (is_dir($workbench = __DIR__.'/../workbench')){ Illuminate\Workbench\Starter::start($workbench); }
我遇到以下错误:
警告:require(C:\ wamp \ www \ laravel \ bootstrap/../vendor/autoload.php)[function.require]:无法打开流:C:\ wamp \ www中没有此类文件或目录第17行的\ laravel \ bootstrap \ autoload.php
Warning: require(C:\wamp\www\laravel\bootstrap/../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\laravel\bootstrap\autoload.php on line 17
和
严重错误:require()[function.require]:无法打开所需的'C:\ wamp \ www \ laravel \ bootstrap/../vendor/autoload.php'(include_path ='.; C:\ php \梨''),位于第17行的C:\ wamp \ www \ laravel \ bootstrap \ autoload.php中
Fatal error: require() [function.require]: Failed opening required 'C:\wamp\www\laravel\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in C:\wamp\www\laravel\bootstrap\autoload.php on line 17
推荐答案
转到当前的Project文件夹
Go to the current Project folder
C:\wamp\www\laravelProjectFolder>
,然后在命令提示符下键入
composer install
,然后按ENTER
键.and type
composer install
in command prompt and pressENTER
key.composer install
然后
vendor
目录将下载到laravel的当前项目中. 现在刷新屏幕.Then the
vendor
directory will be downloaded in the current project of laravel. Now refresh the screen.这篇关于警告:无法打开流:第17行的C:\ wamp \ www \ laravel \ bootstrap \ autoload.php中没有此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!