跳到主要內容區塊
:::
首頁 文章分享列表 文章分享

Laravel 錯誤訊息 failed to open stream: No such file or directory in

Laravel 部署時發生Error

訊息如下

Warning: require(/var/www/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/blog/bootstrap/autoload.php on line 17
Fatal error: require(): Failed opening required '/var/www/blog/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/blog/bootstrap/autoload.php on line 17

通常會死在這邊最直接的原因是 composer 沒有完整安裝所照成的

請嘗試安裝composer

composer install

更新

composer update

延伸閱讀

這篇文章是否對您有幫助?