프로그래밍 언어/PHP - Laravel
Laravel - ../vendor/autoload.php): Failed to open stream: No such file or directory in
Flashback
2023. 4. 21. 22:31
728x90
반응형
1. 원인
라라벨 프로젝트를 처음 생성했을 때, composer를 통해 패키지를 설치하고 autoload.php가 있는 vendor를 생성하지 않았기 때문에 발생하는 에러이다. composer를 통해 패키지를 설치하면 에러가 해결된다.
2. 해결법
composer install
# composer로 패키지 설치
라라벨 루트 폴더에서 composer install를 입력하여 패키지를 설치한다.
참고 사이트 :
https://stackoverflow.com/questions/41209349/requirevendor-autoload-php-failed-to-open-stream
require(vendor/autoload.php): failed to open stream
I know that this issue has been posted many times, but for me it seems to be a different problem. Indeed, this error Warning: require(vendor/autoload.php): failed to open stream: No such file or
stackoverflow.com
728x90
반응형