Laravel5.6安裝:Warning: require(../vendor/autoload.php): failed to open stream: No such file or directory

在phpstudy下使用composer+laravel安装器的方式安装了Laravel,但是访问的时候报错:

Warning: require(D:\phpstudy\WWW\public\myblog\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in .../autoload.php on line 17

通过百度了解到在项目根目录运行composer update命令可以解决这个问题。

但是我在运行composer update时报错

很明显,错误表示最新版本的Laravel5.6版本需要php7.1.3以上版本,但是我的php是7.0.12。

而通过Laravel安装器安装Laravel框架时无法指定具体版本,最终解决办法就是删掉项目文件,通过Composer Create-Project命令指定版本安装Laravel。


  composer create-project --prefer-dist laravel/laravel myblog 5.5.*

由于composer运行较慢,可以考虑使用代理之类的工具!
---------------------

原文:https://blog.csdn.net/sinat_37390744/article/details/87893965

原文地址:https://www.cnblogs.com/gjh99/p/10531676.html

时间: 2024-10-28 20:13:10

Laravel5.6安裝:Warning: require(../vendor/autoload.php): failed to open stream: No such file or directory的相关文章

Laravel访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire

错误信息:`Warning: require(/http/www.mywakavLee.cn/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /http/www.mywakavLee.cn/bootstrap/autoload.php on line 17 Fatal error: require(): Failed opening required '/http/www

Laravel的Warning: require..../vendor/autoload.php错误的解决办法

Warning: require(D:\www\laravel-canvas\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\www\laravel-canvas\bootstrap\autoload.php on line 17 Fatal error: require(): Failed opening required 'D:\www\laravel-canv

[已解决]Thinkphp Error: Failed to open stream: No such file or directory vendor/autoload.php

当第一次尝试着去运行thinkphp时,你或许会得到下面的错误. Warning: require(/var/www/html/tp/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/tp/public/index.php on line 15 Fatal error: require(): Failed opening required '/var/

AppleDoc的安裝使用

前言,還是那句話,新手按照濤叔下面畫黃色的步驟順序執行就好了,不要問為什麼. 一.安裝(注意,濤叔事先已經下載了appledoc) 1.找到下載的appledoc目錄 $ cd /Users/libotao/DevSource/iOS/appledoc 2.運行安裝 $ sudo sh install-appledoc.sh libotaodeMacBook-Pro:~ libotao$ cd /Users/libotao/DevSource/iOS/appledoc libotaodeMacB

Oracle12c client安裝報錯[INS-20802] Oracle Net Configuration Assistant failed完美解決

Doc ID 2082662.1 1.錯誤碼 Installation Of Oracle Client 12.1.0.2.0 (32-bit) Fails With An Error Message "[INS-20802] Oracle Net Configuration Assistant failed 2.問題描述 在window 7安裝Oracle Client12C的時候遇到INS-20802 Oracle Net Configuration Assistant失敗的問題,百度了很多

在linux環境下安裝jprofiler_linux_8_0_2.sh

1.安装jprofiler_linux_8_0_2.sh chmod+x jprofiler_linux_8_0_2.sh ./jprofiler_linux_8_0_2.sh –c 安装过程略..几乎Enter到底(也可在图形界面下安装不加-c选项,则为图形安装) 2.编辑/etc/profile exportLD_LIBRARY_PATH=/opt/jprofiler8/bin/linux-x64 exportLD_LIBRARY_PATH source/etc/profile 3编辑sta

scientific linux 6.x 下安裝 chrome

scientific linux 6.x 不再支援 chrome,連上 google 網站直接下載 chrome 的 rpm 檔案裝,會顯示缺少相依性套件,就算安裝了這些缺的套件,還是會再顯示缺其它套件,陷入一個無窮迴圈! 於是有人寫了安裝 chrome 的 shell script,真是佛心來著!! How to install Google Chrome 28+ on RHEL/CentOS 6 or 7 How to install Google Chrome 28+ on RHEL/Ce

Centos7安裝cacti 和nagios

cacti 一.環境準備 0.設置主機名稱,SELINUX,防火墻以及時區 [[email protected] ~]# hostnamectl set-hostname nms01 [[email protected] ~]# getenforce Disabled [[email protected] ~]# timedatectl set-timezone Asia/Shanghai [[email protected] ~]# systemctl stop firewalld.servi

Apache Maven 3.0.3 (yum) 安裝 (CentOS 6.4 x64)

介紹http://maven.apache.org/ Maven是一個專案的開發,管理和綜合工具. 下載http://maven.apache.org/download.cgi 參考http://maven.apache.org/download.cgi#Installation 使用教學http://maven.apache.org/guides/getting-started/index.htmlhttp://maven.apache.org/guides/index.html 安裝(環境變