3

I want to create new laravel project by composer. I use composer create-project laravel/laravel new-project command for create new project. then, my project is created following this picture.

enter image description here

I start Laravel's local development server using the Laravel's Artisan CLI serve command (first cd new-project and then php artisan serve command). But I got the following error.

enter image description here

Why is there no vendor folder in this project?!!!
How do I fix this error?

(I used PHP 8.1.10)

2
  • Maybe change the phrasing in the title. It reads like you're asking how to prevent it from being created while the question asks why it wasn't. Did you get any errors or anything when you ran composer create-project laravel/laravel new-project? Commented Oct 1, 2022 at 8:14
  • 1
    please retry after composer install Commented Oct 1, 2022 at 8:23

2 Answers 2

8

You need to issue composer install to install packages which creates the vendor/ folder

Sign up to request clarification or add additional context in comments.

Comments

1

You need to delete the vendor folder if you already have one in your project, and run composer install. Then restart your server.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.