Failed opening required 'bootstrap/../vendor/autoload.php'
2017-10-27 14:24
337 查看
从git版本库克隆下来Laravel项目之后,忘了composer install ,结果爆了如下错误~
运行:
composer install
结果又报错:
意思是我的php版本太低,有个包的要求是php版本大于7.1我的是7.0.22,解决办法有两种,
再次访问网站,就可以了。
PHP Fatal error: require(): Failed opening required '/bcc/production/BCCAdminV1.0/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in
运行:
composer install
结果又报错:
ubuntu@ip-172-31-4-119:$ composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for doctrine/instantiator 1.1.0 -> satisfiable by doctrine/instantiator[1.1.0]. - doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement. Problem 2 - doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement. - phpunit/phpunit-mock-objects 2.3.8 requires doctrine/instantiator ^1.0.2 -> satisfiable by doctrine/instantiator[1.1.0]. - Installation request for phpunit/phpunit-mock-objects 2.3.8 -> satisfiable by phpunit/phpunit-mock-objects[2.3.8]. ubuntu@ip-172-31-4-119:$ ll
意思是我的php版本太低,有个包的要求是php版本大于7.1我的是7.0.22,解决办法有两种,
一是忽略:
composer install --ignore-platform-reqs
二是直接删除composer.lock,我是直接把它移动到另外一个地方去了。
然后再:composer install再次访问网站,就可以了。
相关文章推荐
- Laravel 5 Failed opening required bootstrap/../vendor/autoload.php 报错
- Warning: require(D:\wamp\www\glink-smart\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\wamp\www\glink-smart\bootstrap\autoload.php on line 1
- Laravel访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire
- PHP Fatal error: Unknown: Failed opening required
- PHP 报错 Warning: Unknown: failed to open stream Fatal error: Unknown: Failed opening required
- Fatal error: require() [function.require]: Failed opening required 'db.php'
- VM 虚拟机, linux mount windows的共享目录,php报错:Fatal error: Unknown: Failed opening required
- Fatal error: Unknown: Failed opening required 'c:/wamp/www/view.php' (include_path='.
- Laravel访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire
- git 拖下laravel 代码后报错 Warning: require(D:\WWW\laravel\bootstrap/../vendor/autoload.php
- Yii2访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire
- PHP错误解决:Fatal error: Unknown: Failed opening required ...
- laravel php -S 自定义域名 -t 目录 ,报错 PHP Fatal error: Unknown: Failed opening required 'public/' (include
- [李景山php]每天laravel[002]-自动加载函数流程之bootstrap autoload.php
- 每天laravel[002]-自动加载函数流程之bootstrap autoload.php
- [李景山php]每天laravel[003]-自动加载函数流程之vendor autoload.php
- 自动加载函数流程之bootstrap autoload.php
- Laravel源码入门-启动引导过程(二)bootstrap/autoload.php
- 自动加载函数流程之bootstrap autoload.php