Could not find package symfony/web-server-bundle

故事扮演 提交于 2020-08-08 06:01:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!