I want to install new project with 5.2 version but I am getting this error continuously.
Warning: require(C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap\\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap/../vendor/autoload.php' (include_path='C:\\xampp\\php\\PEAR') in C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap\\autoload.php on line 17 PHP Warning: require(C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap\\autoload.php on line 17 PHP Fatal error: require(): Failed opening required 'C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap/../vendor/autoload.php' (include_path='C:\\xampp\\php\\PEAR') in C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap\\autoload.php on line 17 Script php artisan clear-compiled handling the pre-update-cmd event returned with error code 255
It's Look like storage permission problem.
Permissions for storage
We also need to set correct permissions for storage files in the server. So, we need to give a write permission in the storage directory as follows:
$ chmod -R 777 ./storage ./bootstrap
or you may use
$ sudo chmod -R 777 ./storage ./bootstrap
For windows
Make sure you are an admin user on that computer with writeable access
xampp\htdocs\laravel\app\storage needs to be writable
Hope it helped you!.
You need to use composer to install the vendor components. Ie run the following command from the Laravel directory, providing you have composer already installed:
composer install
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.