Code/PHP
라라벨 설치 composer install 명령시 에러 해결 방법
codens
2018. 10. 9. 07:12
* 증상
>composer install 명령후
- 출력 메시지
> php artisan clear-compiled
Warning: require(\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in \bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required '\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in \bootstrap\autoload.php on line 17
Script php artisan clear-compiled handling the pre-update-cmd event returned with error code 255
//============
* 원인
예전 버전 composer.json 파일이 문제
//==========
* 해결 방법
- 방법 1: 에러난 스크립트 제거 <==== 추천
composer.json 파일에서 다음을 제거
"pre-update-cmd": [
"php artisan clear-compiled"
],
- 방법 2: composer.json 파일에 정의된 스크립트 실행안함
composer update --no-scripts
반응형