警告:无法打开流:第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

查看:136
本文介绍了警告:无法打开流:第17行的C:\ wamp \ www \ laravel \ bootstrap \ autoload.php中没有此类文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 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 press ENTER 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆