PHP ARTISAN com erro
Eu tentei iniciar o servidor para ver a parte do Vue.js mas só recebo isso quando tento usar o comando "php artisan serve --port=8001
PHP Warning: require(C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js/vendor/autoload.php): Failed to open stream: No
such file or directory in C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js\artisan on line 18
Warning: require(C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js/vendor/autoload.php): Failed to open stream: No such
file or directory in C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js\artisan on line 18
PHP Fatal error: Uncaught Error: Failed opening required 'C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js\artisan:18
Stack trace:
#0 {main}
thrown in C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js\artisan on line 18
Fatal error: Uncaught Error: Failed opening required 'C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js\artisan:18
Stack trace:
#0 {main}
thrown in C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js\artisan on line 18
https://github.com/Lony-dot/Laravel-vue.js
Olá, Harrison!
Tudo bem?
Instalou as dependencias do projeto com o composer?
composer install
Olá, bom dia!
Quando tento instalar o composer aparece isso:
PS C:\Users\Lony\OneDrive\Documentos\curso\Laravel-vue.js> composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- doctrine/inflector is locked to version v1.3.0 and an update of this package was not requested.
- doctrine/inflector v1.3.0 requires php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
Problem 2
- laravel/framework is locked to version v5.6.11 and an update of this package was not requested.
- laravel/framework v5.6.11 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 3
- ramsey/uuid is locked to version 3.7.3 and an update of this package was not requested.
- ramsey/uuid 3.7.3 requires php ^5.4 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 4
- spatie/laravel-cors is locked to version 1.1.0 and an update of this package was not requested.
- spatie/laravel-cors 1.1.0 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 5
- symfony/console is locked to version v4.0.6 and an update of this package was not requested.
- symfony/console v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 6
- symfony/css-selector is locked to version v4.0.6 and an update of this package was not requested.
- symfony/css-selector v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 7
- symfony/debug is locked to version v4.0.6 and an update of this package was not requested.
- symfony/debug v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 8
- symfony/event-dispatcher is locked to version v4.0.6 and an update of this package was not requested.
- symfony/event-dispatcher v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 9
- symfony/finder is locked to version v4.0.6 and an update of this package was not requested.
- symfony/finder v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 10
- symfony/http-foundation is locked to version v4.0.6 and an update of this package was not requested.
- symfony/http-foundation v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 11
- symfony/http-kernel is locked to version v4.0.6 and an update of this package was not requested.
- symfony/http-kernel v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 12
- symfony/process is locked to version v4.0.6 and an update of this package was not requested.
- symfony/process v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 13
- symfony/routing is locked to version v4.0.6 and an update of this package was not requested.
- symfony/routing v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 14
- symfony/translation is locked to version v4.0.6 and an update of this package was not requested.
- symfony/translation v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 15
- symfony/var-dumper is locked to version v4.0.6 and an update of this package was not requested.
- symfony/var-dumper v4.0.6 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
Problem 16
- tijsverkoyen/css-to-inline-styles is locked to version 2.2.1 and an update of this package was not requested.
- tijsverkoyen/css-to-inline-styles 2.2.1 requires php ^5.5 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 17
- tymon/jwt-auth is locked to version dev-develop and an update of this package was not requested.
- tymon/jwt-auth dev-develop requires php ^5.5.9 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 18
- doctrine/instantiator is locked to version 1.1.0 and an update of this package was not requested.
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
Problem 19
- filp/whoops is locked to version 2.1.14 and an update of this package was not requested.
- filp/whoops 2.1.14 requires php ^5.5.9 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 20
- fzaninotto/faker is locked to version v1.7.1 and an update of this package was not requested.
- fzaninotto/faker v1.7.1 requires php ^5.3.3 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 21
- hamcrest/hamcrest-php is locked to version v2.0.0 and an update of this package was not requested.
- hamcrest/hamcrest-php v2.0.0 requires php ^5.3|^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 22
- myclabs/deep-copy is locked to version 1.7.0 and an update of this package was not requested.
- myclabs/deep-copy 1.7.0 requires php ^5.6 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 23
- nunomaduro/collision is locked to version v2.0.0 and an update of this package was not requested.
- nunomaduro/collision v2.0.0 requires php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
Problem 24
- phar-io/manifest is locked to version 1.0.1 and an update of this package was not requested.
- phar-io/manifest 1.0.1 requires php ^5.6 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 25
- phar-io/version is locked to version 1.0.1 and an update of this package was not requested.
- phar-io/version 1.0.1 requires php ^5.6 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 26
- phpdocumentor/reflection-docblock is locked to version 4.3.0 and an update of this package was not requested.
- phpdocumentor/reflection-docblock 4.3.0 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 27
- phpdocumentor/type-resolver is locked to version 0.4.0 and an update of this package was not requested.
- phpdocumentor/type-resolver 0.4.0 requires php ^5.5 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 28
- phpspec/prophecy is locked to version 1.7.5 and an update of this package was not requested.
- phpspec/prophecy 1.7.5 requires php ^5.3|^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 29
- phpunit/php-code-coverage is locked to version 6.0.1 and an update of this package was not requested.
- phpunit/php-code-coverage 6.0.1 requires php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
Problem 30
- phpunit/php-timer is locked to version 2.0.0 and an update of this package was not requested.
- phpunit/php-timer 2.0.0 requires php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
Problem 31
- phpunit/php-token-stream is locked to version 3.0.0 and an update of this package was not requested.
- phpunit/php-token-stream 3.0.0 requires php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
Problem 32
- phpunit/phpunit is locked to version 7.0.2 and an update of this package was not requested.
- phpunit/phpunit 7.0.2 requires php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
Problem 33
- phpunit/phpunit-mock-objects is locked to version 6.0.1 and an update of this package was not requested.
- phpunit/phpunit-mock-objects 6.0.1 requires php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
Problem 34
- sebastian/code-unit-reverse-lookup is locked to version 1.0.1 and an update of this package was not requested.
- sebastian/code-unit-reverse-lookup 1.0.1 requires php ^5.6 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 35
- sebastian/comparator is locked to version 2.1.3 and an update of this package was not requested.
- sebastian/comparator 2.1.3 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 36
- sebastian/diff is locked to version 3.0.0 and an update of this package was not requested.
- sebastian/diff 3.0.0 requires php ^7.1 -> your php version (8.1.10) does not satisfy that requirement.
Problem 37
- sebastian/environment is locked to version 3.1.0 and an update of this package was not requested.
- sebastian/environment 3.1.0 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 38
- sebastian/exporter is locked to version 3.1.0 and an update of this package was not requested.
- sebastian/exporter 3.1.0 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 39
- sebastian/global-state is locked to version 2.0.0 and an update of this package was not requested.
- sebastian/global-state 2.0.0 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 40
- sebastian/object-enumerator is locked to version 3.0.3 and an update of this package was not requested.
- sebastian/object-enumerator 3.0.3 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 41
- sebastian/object-reflector is locked to version 1.1.1 and an update of this package was not requested.
- sebastian/object-reflector 1.1.1 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 42
- sebastian/recursion-context is locked to version 3.0.0 and an update of this package was not requested.
- sebastian/recursion-context 3.0.0 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 43
- symfony/thanks is locked to version v1.0.6 and an update of this package was not requested.
- symfony/thanks v1.0.6 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.6.0] but it does not match the constraint.
Problem 44
- theseer/tokenizer is locked to version 1.1.0 and an update of this package was not requested.
- theseer/tokenizer 1.1.0 requires php ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 45
- webmozart/assert is locked to version 1.3.0 and an update of this package was not requested.
- webmozart/assert 1.3.0 requires php ^5.3.3 || ^7.0 -> your php version (8.1.10) does not satisfy that requirement.
Problem 46
- laravel/framework v5.6.11 requires php ^7.1.3 -> your php version (8.1.10) does not satisfy that requirement.
- laravel/tinker v1.0.5 requires illuminate/console ~5.1 -> satisfiable by laravel/framework[v5.6.11].
- laravel/tinker is locked to version v1.0.5 and an update of this package was not requested.
Deleta o arquivo composer.lock, e rode o comando composer update
Se não der certo, vou rodar aqui e atualizar os packages para você.
Não foi, acho que vou precisar dos Packages sim, por favor
tentei usar o composer install require --ignore-platform-reqs
mas não funcionou
tudo que eu tentei deu erro professor, tentei ver a questão do Packages sozinho mas não estou conseguindo resolver, pode rodar eles quando puder por favor?
Testei aqui agora, com este setup: https://github.com/especializati/setup-docker-laravel
Está dando muitos problemas, mesmo fazendo o downgrade da versão do PHP, para 7.1
O que eu recomendo?
Faça o curso na versão 11.x do Laravel, deixe tudo atualizado.
Inclusive, tem cursos mais atualizados sobre APIs e autenticação.
https://academy.especializati.com.br/curso/laravel-api-com-acl
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!