2016-10-13 161 views
2

我尝试使用symfony,因为过去几个月。昨晚我做了一次自动删除来清除不需要的存储库。之后,我无法使用symfony命令创建一个新的symfony项目。当我在终端运行Symfony new SecurityDemo 2.8.1, 我得到的错误Symfony:未找到命令

Symfony: command not found 

我试图安装Symfony的安装再次为导向的文档http://symfony.com/doc/current/setup.html英寸我进入我的根目录并按照屏幕截图中所示的安装步骤进行操作。 enter image description here

仍然出现同样的错误。

所有帮助表示赞赏。

编辑:

我与LAMP工作,并正在使用PHP 5.6。

当我尝试使用symfony self-update更新symfony的安装程序我得到的输出

// Symfony Installer is already updated to the latest version (1.5.8). 

回答

1

尝试调用的Symfony它在小写为例:

>symfony new SecurityDemo 2.8.1 

希望这有助于

0

证明,我不能用资本'S'在symfony。使用symfony new project_name做了诀窍。

0

正确的命令是

symfony new SecurityDemo 2.8.1