Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

artisan command throwing an error #792

Open
ONtio-js opened this issue Nov 7, 2022 · 6 comments
Open

artisan command throwing an error #792

ONtio-js opened this issue Nov 7, 2022 · 6 comments

Comments

@ONtio-js
Copy link

ONtio-js commented Nov 7, 2022

have been trying to run the test locally but it keeps throwing error

@zainamin43
Copy link

Same

@albertlens
Copy link

The same for me.
PHP Warning: require(C:\laravel\Test-Laravel-Routes-main/vendor/autoload.php): Failed to open stream: No such file or directory in C:\laravel\Test-Laravel-Routes-main\artisan on line 18

Warning: require(C:\laravel\Test-Laravel-Routes-main/vendor/autoload.php): Failed to open stream: No such file or directory in C:\laravel\Test-Laravel-Routes-main\artisan on line 18
PHP Fatal error: Uncaught Error: Failed opening required 'C:\laravel\Test-Laravel-Routes-main/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\laravel\Test-Laravel-Routes-main\artisan:18
Stack trace:
#0 {main}
thrown in C:\laravel\Test-Laravel-Routes-main\artisan on line 18

Fatal error: Uncaught Error: Failed opening required 'C:\laravel\Test-Laravel-Routes-main/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\laravel\Test-Laravel-Routes-main\artisan:18
Stack trace:
#0 {main}
thrown in C:\laravel\Test-Laravel-Routes-main\artisan on line 18

@albertlens
Copy link

The same for me. PHP Warning: require(C:\laravel\Test-Laravel-Routes-main/vendor/autoload.php): Failed to open stream: No such file or directory in C:\laravel\Test-Laravel-Routes-main\artisan on line 18

Warning: require(C:\laravel\Test-Laravel-Routes-main/vendor/autoload.php): Failed to open stream: No such file or directory in C:\laravel\Test-Laravel-Routes-main\artisan on line 18 PHP Fatal error: Uncaught Error: Failed opening required 'C:\laravel\Test-Laravel-Routes-main/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\laravel\Test-Laravel-Routes-main\artisan:18 Stack trace: #0 {main} thrown in C:\laravel\Test-Laravel-Routes-main\artisan on line 18

Fatal error: Uncaught Error: Failed opening required 'C:\laravel\Test-Laravel-Routes-main/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\laravel\Test-Laravel-Routes-main\artisan:18 Stack trace: #0 {main} thrown in C:\laravel\Test-Laravel-Routes-main\artisan on line 18

@albertlens
Copy link

Solved!!!

After downloading and extracting, several steps must be done.
1.- composer update
2.- create the .ENV file with your database data
3.- generate new APP KEY

and now it works!!!

@krekas
Copy link
Contributor

krekas commented Feb 19, 2023

Solved!!!

After downloading and extracting, several steps must be done. 1.- composer update 2.- create the .ENV file with your database data 3.- generate new APP KEY

and now it works!!!

It's basic stuff. And you should use git clone command. Plus composer install instead of update normally should be used, in this case shouldn't matter.

@Zolfikaar
Copy link

Solved!!!
After downloading and extracting, several steps must be done. 1.- composer update 2.- create the .ENV file with your database data 3.- generate new APP KEY
and now it works!!!

It's basic stuff. And you should use git clone command. Plus composer install instead of update normally should be used, in this case shouldn't matter.

I cloned the repo using "git clone", ran "composer install", yet when running "vendor/bin/phpunit" or "php artisan test" i got the same error for all 8 tests:
8) Tests\Feature\RoutesTest::test_is_admin_middleware_is_working
ErrorException: Array to string conversion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants