问题
when i enter this command in visual studio code terminal to import server for my symfony project
"composer require server --dev" it show this error message " [InvalidArgumentException]
Could not find package symfony/web-server-bundle in a version matching 5.0.* "
回答1:
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
回答2:
Install Symfony https://symfony.com/download and use :
symfony server:start
- or
symfony server:start -d
回答3:
The development web-server is included in the symfony client.
Install the symfony cli : https://symfony.com/download
Then, you can start the dev web server
symfony server:start
来源:https://stackoverflow.com/questions/58984037/could-not-find-package-symfony-web-server-bundle