Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find package symfony/web-server-bundle

When I enter this command in Visual Studio Code terminal to install the server package in my project (composer require server --dev) it shows this error message

[InvalidArgumentException]
Could not find package symfony/web-server-bundle in a version matching 5.0.* "

like image 839
Jawhar Chebbi Avatar asked Nov 21 '19 21:11

Jawhar Chebbi


2 Answers

You need to add the version to. Like this:

composer require symfony/web-server-bundle --dev ^4.4.2

You can check for the latest version here: https://packagist.org/packages/symfony/web-server-bundle

like image 116
Cristian Avatar answered Nov 17 '22 13:11

Cristian


Install Symfony https://symfony.com/download and use :

  • symfony server:start
  • or symfony server:start -d
like image 3
montassar Avatar answered Nov 17 '22 13:11

montassar