0

The installation status is available in the picture

Composer giving Content-Length mismatch error Warning: require(C:\xampp\htdocs\yii\web/../vendor/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\yii\web\index.php on line 7

Fatal error: Uncaught Error: Failed opening required 'C:\xampp\htdocs\yii\web/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\yii\web\index.php:7 Stack trace: #0 {main} thrown in C:\xampp\htdocs\yii\web\index.php on line 7

aynber
  • 22,380
  • 8
  • 50
  • 63
  • Try adding `-vvv` to your composer command and try again. There's a network issue somewhere, and that might help track it down. – aynber May 16 '23 at 18:56
  • Possible duplicates: [Force https for packagist](https://stackoverflow.com/questions/38635257/composer-content-length-mismatch), [No answer, but mentions Windows Defender blocking](https://stackoverflow.com/questions/42993660/composer-content-mismatch-length-after-update-to-latest-1-4-1) – aynber May 16 '23 at 18:59
  • `autoload` file is created after composer successfully downloads all packages, in your case composer fails and autoload file was not created, try to reinstall all packages – ustmaestro May 17 '23 at 14:03

0 Answers0