无法使用“symfony/website-skeleton"创建 symfony 4 项目; [英] can't create a symfony 4 project with "symfony/website-skeleton"

查看:44
本文介绍了无法使用“symfony/website-skeleton"创建 symfony 4 项目;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 --full 创建项目时出现错误消息

I have an error message when I create the project with --full

Symfony CLI 版本 v4.21.3 (2020-12-11T09:19:56+0000 - 稳定)

Symfony CLI version v4.21.3 (2020-12-11T09:19:56+0000 - stable)

PHP 7.1.9 (cli)(构建时间:2017 年 8 月 30 日 18:34:46)(ZTS MSVC14(Visual C++ 2015)x64)版权所有 (c) 1997-2017 PHP GroupZend Engine v3.1.0,版权所有 (c) 1998-2017 Zend Technologies

PHP 7.1.9 (cli) (built: Aug 30 2017 18:34:46) ( ZTS MSVC14 (Visual C++ 2015) x64 ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

作曲家版本 2.0.8 2020-12-03 17:20:38

Composer version 2.0.8 2020-12-03 17:20:38

和命令使用

symfony new blog --full

错误提示

Script cache:clear returned with error code 255
!!
!!   // Clearing the cache for the dev environment with debug true
!!
!!  07:21:01 CRITICAL  [php] Uncaught Error: Call to undefined method Twig\Environment::registerUndefinedTokenParserCallback() ["exception" => Error { …}]
!!
!!  In srcApp_KernelDevDebugContainer.php line 1546:
!!
!!    Attempted to call an undefined method named "registerUndefinedTokenParserCallback" of class "Twig\Environment".
!!    Did you mean to call e.g. "registerUndefinedFilterCallback" or "registerUndefinedFunctionCallback"?
!!
!!
!!  cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
!!
!!
Script @auto-scripts was called via post-update-cmd

错误截图

推荐答案

这是 twig/extra-bundle v3.2.0 中的一个错误,根据 我的错误报告.损坏的版本未发布,可以使用 PHP 7.1 再次启动项目

This was a bug in twig/extra-bundle v3.2.0, according to my bug report. The broken version was unpublished, and starting a project is possible again using PHP 7.1

这篇关于无法使用“symfony/website-skeleton"创建 symfony 4 项目;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆