LoginSignup
86
67

More than 5 years have passed since last update.

Laravelで…vendor/autoload.php): failed to open stream: No such file or directory というエラーによりデフォルト画面が表示されない解決方法

Last updated at Posted at 2015-01-10

homestead で homestead up が成功していて、homesteadでnginxのログを表示してエラーを解消したものの、Laravelがautoload.phpが無いというエラー画面を出してきました。

ファイルが読み込めないというエラー

エラーが出てしまいました。

autoload.phpが読み込めないとエラー
( ! ) Warning: require(/home/vagrant/workspace/php/Laravel/laravel-homestead/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory

画像

composerをインストールする

ファイルが無いらしいので、composer installすればいいみたいです。

Laravelを置いてあるディレクトリに移動
cd /home/vagrant/workspace/php/Laravel/laravel-homestead/

composer installしました。

composerをinstall
composer install

# 色々インストールされました

コメントいただいたところによるとcomposer updateでもいいみたいです。

再度ブラウザにアクセスすると

Laravelという画面がでました。

この後どうしたらいいのやら

参考

https://teamtreehouse.com/forum/how-can-i-import-project-files-without-getting-errors
https://twitter.com/sharo0331pc/status/553819024111312896
https://twitter.com/fagai/status/553819095347376128

86
67
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
86
67