无法在产品环境中安装 Sylius 1.3,nelmio_alice 错误
Unable to install Sylius 1.3 in prod env, nelmio_alice error
无法在 prod 环境中安装 Sylius(在 .env 文件中编辑了 $APP_ENV = prod),执行时出现此错误:sudo php bin/console sylius:install
但是我可以在dev环境下安装,请帮忙!
Error.log
ubuntu@ip:/var/www/pwsstore_prod/Sylius$ sudo php bin/console sylius:install
In FileLoader.php line 168:
There is no extension able to load the configuration for "nelmio_alice" (in
/var/www/pwsstore_prod/Sylius/config/packages/nelmio_alice.yaml). Looked f
or namespace "nelmio_alice", found "framework", "monolog", "security", "swi
ftmailer", "twig", "doctrine", "doctrine_cache", "sylius_order", "sylius_mo
ney", "sylius_currency", "sylius_locale", "sylius_product", "sylius_channel
", "sylius_attribute", "sylius_taxation", "sylius_shipping", "sylius_paymen
t", "sylius_mailer", "sylius_promotion", "sylius_addressing", "sylius_inven
tory", "sylius_taxonomy", "sylius_user", "sylius_customer", "sylius_ui", "s
ylius_review", "sylius_core", "sylius_resource", "sylius_grid", "winzou_sta
te_machine", "sonata_core", "sonata_block", "sonata_intl", "bazinga_hateoas
", "jms_serializer", "fos_rest", "knp_gaufrette", "knp_menu", "liip_imagine
", "payum", "stof_doctrine_extensions", "white_october_pagerfanta", "doctri
ne_migrations", "doctrine_fixtures", "sylius_fixtures", "sylius_payum", "sy
lius_theme", "sylius_admin", "sylius_shop", "fos_oauth_server", "sylius_adm
in_api" in /var/www/pwsstore_prod/Sylius/config/packages/nelmio_alice.yaml
(which is loaded in resource "/var/www/pwsstore_prod/Sylius/config/packages
/nelmio_alice.yaml").
In YamlFileLoader.php line 657:
There is no extension able to load the configuration for "nelmio_alice" (in
/var/www/pwsstore_prod/Sylius/config/packages/nelmio_alice.yaml). Looked f
or namespace "nelmio_alice", found "framework", "monolog", "security", "swi
ftmailer", "twig", "doctrine", "doctrine_cache", "sylius_order", "sylius_mo
ney", "sylius_currency", "sylius_locale", "sylius_product", "sylius_channel
", "sylius_attribute", "sylius_taxation", "sylius_shipping", "sylius_paymen
t", "sylius_mailer", "sylius_promotion", "sylius_addressing", "sylius_inven
tory", "sylius_taxonomy", "sylius_user", "sylius_customer", "sylius_ui", "s
ylius_review", "sylius_core", "sylius_resource", "sylius_grid", "winzou_sta
te_machine", "sonata_core", "sonata_block", "sonata_intl", "bazinga_hateoas
", "jms_serializer", "fos_rest", "knp_gaufrette", "knp_menu", "liip_imagine
", "payum", "stof_doctrine_extensions", "white_october_pagerfanta", "doctri
ne_migrations", "doctrine_fixtures", "sylius_fixtures", "sylius_payum", "sy
lius_theme", "sylius_admin", "sylius_shop", "fos_oauth_server", "sylius_adm
in_api"
将 nelmo_alice.yml
文件从 config/packages/nelmo_alice.yml
移动到 config/packages/dev/nelmio_alice.yml
(在 packages
目录中创建 dev
文件夹并添加 nelmio_alice
文件)
然后,运行安装命令如常!
无法在 prod 环境中安装 Sylius(在 .env 文件中编辑了 $APP_ENV = prod),执行时出现此错误:sudo php bin/console sylius:install
但是我可以在dev环境下安装,请帮忙!
Error.log
ubuntu@ip:/var/www/pwsstore_prod/Sylius$ sudo php bin/console sylius:install
In FileLoader.php line 168:
There is no extension able to load the configuration for "nelmio_alice" (in
/var/www/pwsstore_prod/Sylius/config/packages/nelmio_alice.yaml). Looked f
or namespace "nelmio_alice", found "framework", "monolog", "security", "swi
ftmailer", "twig", "doctrine", "doctrine_cache", "sylius_order", "sylius_mo
ney", "sylius_currency", "sylius_locale", "sylius_product", "sylius_channel
", "sylius_attribute", "sylius_taxation", "sylius_shipping", "sylius_paymen
t", "sylius_mailer", "sylius_promotion", "sylius_addressing", "sylius_inven
tory", "sylius_taxonomy", "sylius_user", "sylius_customer", "sylius_ui", "s
ylius_review", "sylius_core", "sylius_resource", "sylius_grid", "winzou_sta
te_machine", "sonata_core", "sonata_block", "sonata_intl", "bazinga_hateoas
", "jms_serializer", "fos_rest", "knp_gaufrette", "knp_menu", "liip_imagine
", "payum", "stof_doctrine_extensions", "white_october_pagerfanta", "doctri
ne_migrations", "doctrine_fixtures", "sylius_fixtures", "sylius_payum", "sy
lius_theme", "sylius_admin", "sylius_shop", "fos_oauth_server", "sylius_adm
in_api" in /var/www/pwsstore_prod/Sylius/config/packages/nelmio_alice.yaml
(which is loaded in resource "/var/www/pwsstore_prod/Sylius/config/packages
/nelmio_alice.yaml").
In YamlFileLoader.php line 657:
There is no extension able to load the configuration for "nelmio_alice" (in
/var/www/pwsstore_prod/Sylius/config/packages/nelmio_alice.yaml). Looked f
or namespace "nelmio_alice", found "framework", "monolog", "security", "swi
ftmailer", "twig", "doctrine", "doctrine_cache", "sylius_order", "sylius_mo
ney", "sylius_currency", "sylius_locale", "sylius_product", "sylius_channel
", "sylius_attribute", "sylius_taxation", "sylius_shipping", "sylius_paymen
t", "sylius_mailer", "sylius_promotion", "sylius_addressing", "sylius_inven
tory", "sylius_taxonomy", "sylius_user", "sylius_customer", "sylius_ui", "s
ylius_review", "sylius_core", "sylius_resource", "sylius_grid", "winzou_sta
te_machine", "sonata_core", "sonata_block", "sonata_intl", "bazinga_hateoas
", "jms_serializer", "fos_rest", "knp_gaufrette", "knp_menu", "liip_imagine
", "payum", "stof_doctrine_extensions", "white_october_pagerfanta", "doctri
ne_migrations", "doctrine_fixtures", "sylius_fixtures", "sylius_payum", "sy
lius_theme", "sylius_admin", "sylius_shop", "fos_oauth_server", "sylius_adm
in_api"
将 nelmo_alice.yml
文件从 config/packages/nelmo_alice.yml
移动到 config/packages/dev/nelmio_alice.yml
(在 packages
目录中创建 dev
文件夹并添加 nelmio_alice
文件)
然后,运行安装命令如常!