I
I
iiiideb2020-01-10 12:14:18
Composer
iiiideb, 2020-01-10 12:14:18

Laravel is not an internal or external command?

Started installing laravel via composer. I use Openserver, in the console I wrote "composer create-project --prefer-dist laravel/laravel blog", the project was created in the domains/laravel folder, everything is fine. But when typing the command in the console, laravel gives an error: "laravel" is not an internal or external
command, executable program or batch file.
Below is a screenshot with the path variable
5e184003214de805104179.png
And when you enter "php artisan serve" into the console, it
gives an error:
Could not open input file: artisan

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NikSIk31, 2020-01-10
@NikSIk31

Go to the console in the created folder, now you are in ospanel (look at the path next to the command being executed)
You need to go to the folder with the newly created project

C
Cyrus, 2021-08-11
@storm184

Add this path to PATH variable c:\OpenServer\userdata\composer\vendor\bin\

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question