Could not open input file artisan

0 votes

I got this error on CLI while creating a laravel project.

Could not open input file: artisan
Script php artisan clear-compiled handling the post-install-cmd event returned with an error

Can someone please tell me why this error occurred? and how can I solve this?

Apr 30, 2022 in Other DevOps Questions by Kichu
• 19,050 points
9,486 views

1 answer to this question.

0 votes

This error happens because you didn't install composer on your project. To solve this just change the permission of the artisan file.

For Linux:

chmod 777 artisan

For windows

  • use the file property
I hope this helps.
answered May 1, 2022 by narikkadan
• 63,680 points

Related Questions In Other DevOps Questions

0 votes
0 answers

The request was aborted: Could not create SSL/TLS secure channel

When I connect to an  HTTPS server ...READ MORE

May 1, 2022 in Other DevOps Questions by Kichu
• 19,050 points
1,946 views
0 votes
0 answers

Input string was not in a correct format

I am working on a basic calculator  ...READ MORE

May 2, 2022 in Other DevOps Questions by Kichu
• 19,050 points
3,669 views
0 votes
0 answers

Whats the point of running Laravel with the command 'php artisan serve'?

Why do we need to run a ...READ MORE

Jun 7, 2022 in PHP by Kichu
• 19,050 points
681 views
0 votes
0 answers

PHP Composer update "cannot allocate memory" error (using Laravel 4)

I'm on Linode 1G RAM basic plan. ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,680 points
970 views
0 votes
0 answers

Artisan, creating tables in database

In Laravel 5, I'm attempting to build ...READ MORE

Jul 22, 2022 in PHP by Kithuzzz
• 38,020 points
375 views
0 votes
1 answer

'git' is not recognized as an internal or external command

Add the following paths to PATH: C:\Program Files\Git\bin\ C:\Program ...READ MORE

answered Apr 29, 2022 in Other DevOps Questions by narikkadan
• 63,680 points
5,450 views
0 votes
1 answer

Can't bind to 'ngModel' since it isn't a known property of 'input'

Just add this in the app.module.ts file: import { FormsModule ...READ MORE

answered Apr 30, 2022 in Other DevOps Questions by narikkadan
• 63,680 points
4,381 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP