指定不存在的目录 /vich/uploader-bundle 作为 Doctrine 映射源
Specified non-existing directory /vich/uploader-bundle as Doctrine mapping source
我正在尝试 install/update 我的包裹。但是,当我 运行 composer install,
时出现以下错误。
Specified non-existing directory
"/home/wwwroot/htdocs/vendor/vich/uploader-bundle/Resources/config/doctrine"
as Doctrine mapping source.
这与作曲家版本有关吗?版本太旧还是太新?我缺少配置吗?我尝试切换并尝试各种版本,但找不到解决方案。
composer.json
{
"type": "project",
"license": "proprietary",
"minimum-stability": "dev",
"prefer-stable" : true,
"require": {
"php": "^8.1",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-json": "*",
"doctrine/annotations": "*",
"doctrine/doctrine-bundle": "2.3.*",
"doctrine/doctrine-migrations-bundle": "*",
"doctrine/orm": "2.8.2",
"easycorp/easyadmin-bundle": "3.2.7",
"jms/serializer": "^3.12",
"jms/serializer-bundle": "^3.9",
"lexik/jwt-authentication-bundle": "*",
"lexik/translation-bundle": "5.2.0",
"nelmio/api-doc-bundle": "^4.2",
"nelmio/cors-bundle": "^2.1",
"phpdocumentor/reflection-docblock": "^5.4",
"phpstan/phpdoc-parser": "^1.4",
"sensio/framework-extra-bundle": "^5.4",
"symfony/asset": "5.4.*",
"symfony/console": "5.4.*",
"symfony/dotenv": "5.4.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.4.*",
"symfony/framework-bundle": "5.4.*",
"symfony/mailer": "5.4.*",
"symfony/monolog-bundle": "^3.1",
"symfony/property-access": "5.4.*",
"symfony/property-info": "5.4.*",
"symfony/proxy-manager-bridge": "5.4.*",
"symfony/security-bundle": "*",
"symfony/security-guard": "*",
"symfony/serializer": "5.4.*",
"symfony/swiftmailer-bundle": "^3.5",
"symfony/twig-bundle": "5.4.*",
"symfony/validator": "5.4.*",
"symfony/yaml": "5.4.*",
"symfonycasts/reset-password-bundle": "*",
"vich/uploader-bundle": "^1.17"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "5.4.*",
"symfony/css-selector": "5.4.*",
"symfony/debug-bundle": "5.4.*",
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "^5.2",
"symfony/stopwatch": "5.4.*",
"symfony/web-profiler-bundle": "5.4.*"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true,
"secure-http": false,
"allow-plugins": {
"symfony/flex": true
}
},
"autoload": {
"psr-4": {
"App\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\Tests\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.4.*"
}
}
}
在我的例子中,我在 5.3 版本中安装了 symfony/doctrine-bridge
依赖项并且它有效:
composer require "symfony/doctrine-bridge":"5.3.*"
我正在尝试 install/update 我的包裹。但是,当我 运行 composer install,
时出现以下错误。
Specified non-existing directory "/home/wwwroot/htdocs/vendor/vich/uploader-bundle/Resources/config/doctrine" as Doctrine mapping source.
这与作曲家版本有关吗?版本太旧还是太新?我缺少配置吗?我尝试切换并尝试各种版本,但找不到解决方案。
composer.json
{
"type": "project",
"license": "proprietary",
"minimum-stability": "dev",
"prefer-stable" : true,
"require": {
"php": "^8.1",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-json": "*",
"doctrine/annotations": "*",
"doctrine/doctrine-bundle": "2.3.*",
"doctrine/doctrine-migrations-bundle": "*",
"doctrine/orm": "2.8.2",
"easycorp/easyadmin-bundle": "3.2.7",
"jms/serializer": "^3.12",
"jms/serializer-bundle": "^3.9",
"lexik/jwt-authentication-bundle": "*",
"lexik/translation-bundle": "5.2.0",
"nelmio/api-doc-bundle": "^4.2",
"nelmio/cors-bundle": "^2.1",
"phpdocumentor/reflection-docblock": "^5.4",
"phpstan/phpdoc-parser": "^1.4",
"sensio/framework-extra-bundle": "^5.4",
"symfony/asset": "5.4.*",
"symfony/console": "5.4.*",
"symfony/dotenv": "5.4.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.4.*",
"symfony/framework-bundle": "5.4.*",
"symfony/mailer": "5.4.*",
"symfony/monolog-bundle": "^3.1",
"symfony/property-access": "5.4.*",
"symfony/property-info": "5.4.*",
"symfony/proxy-manager-bridge": "5.4.*",
"symfony/security-bundle": "*",
"symfony/security-guard": "*",
"symfony/serializer": "5.4.*",
"symfony/swiftmailer-bundle": "^3.5",
"symfony/twig-bundle": "5.4.*",
"symfony/validator": "5.4.*",
"symfony/yaml": "5.4.*",
"symfonycasts/reset-password-bundle": "*",
"vich/uploader-bundle": "^1.17"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "5.4.*",
"symfony/css-selector": "5.4.*",
"symfony/debug-bundle": "5.4.*",
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "^5.2",
"symfony/stopwatch": "5.4.*",
"symfony/web-profiler-bundle": "5.4.*"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true,
"secure-http": false,
"allow-plugins": {
"symfony/flex": true
}
},
"autoload": {
"psr-4": {
"App\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\Tests\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.4.*"
}
}
}
在我的例子中,我在 5.3 版本中安装了 symfony/doctrine-bridge
依赖项并且它有效:
composer require "symfony/doctrine-bridge":"5.3.*"