utk*_*2k2 9 symfony symfony-console
自过去几个月以来,我一直在尝试与 symfony 合作。昨晚我做了一个自动删除来清除不需要的存储库。之后,我无法使用 symfony 命令创建新的 symfony 项目。当我Symfony new SecurityDemo 2.8.1
在终端中运行时,出现错误
Symfony: command not found
Run Code Online (Sandbox Code Playgroud)
我尝试按照文档http://symfony.com/doc/current/setup.html 中的指示再次安装Symfony 安装程序。我转到我的根目录并按照屏幕截图所示的安装过程进行操作
我仍然得到同样的错误。
感谢所有帮助。
编辑:
我正在使用 LAMP 并使用 PHP 5.6。
当我尝试使用更新 symfony 安装程序时,symfony self-update
我得到输出
// Symfony Installer is already updated to the latest version (1.5.8).
Run Code Online (Sandbox Code Playgroud)
Sté*_*GER 17
将以下行添加到您的 shell 配置文件中:
export PATH="$HOME/.symfony/bin:$PATH"
Xan*_*tos 15
对我来说,修复方法是重新安装 symfony:
curl -sS https://get.symfony.com/cli/installer | bash
Run Code Online (Sandbox Code Playgroud)
请参阅此处https://symfony.com/download
据我的经验,它不会破坏环境。
如果您确定symfony
正确安装了该命令,则必须使用小写字母s
而不是来调用它Symfony
。
正确的命令是:
$ symfony new SecurityDemo 2.8.1
Run Code Online (Sandbox Code Playgroud)
http://symfony.com/doc/current/setup.html#basing-your-project-on-a-specific-symfony-version
归档时间: |
|
查看次数: |
32576 次 |
最近记录: |