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-canvas\bootstrap/../vendor/autoload.php‘ (include_path=‘\xampp\php\PEAR‘) in D:\var\laravel-canvas\bootstrap\autoload.php on line 17
这是核心都没有拖下来的缘故!(自己犯了好几次这个错误)
解决办法:
1. cd 到该引用的根目录,先删除 composer.lock 文件;
2. 重新在根目录执行“composer install”,这样就能重新生成 composer.lock 文件了。
3.如果出现php版本不匹配,可用“composer install --ignore-platform-reqs”(忽略版本匹配)。
然后等待安装:
相关推荐
lei0 2020-11-02
webgm 2020-08-16
igogo00 2020-07-04
iconhot 2020-06-26
88481456 2020-06-18
疯狂紫萧 2020-06-16
yezitoo 2020-06-06
SelinaChan 2020-05-15
luckymaoyy 2020-04-25
80437700 2020-04-17
austindev 2020-04-07
我有一只小松鼠 2020-02-29
webfullStack 2020-02-15
binglingnew 2012-10-03
始作俑者 2020-01-19
Dawnworld 2019-12-23
yezitoo 2019-12-05
moyigg 2019-12-02