简体   繁体   English

'phing' 未被识别为内部或外部命令,

[英]'phing' is not recognized as an internal or external command,

i am a laravel developer and i have integrated aimeos in laravel.There is a command specific to aimeos phing -f phing.xml i18n which i try to run this command in the command line inside my laravel project directory it gives me error i am a laravel developer and i have integrated aimeos in laravel.There is a command specific to aimeos phing -f phing.xml i18n which i try to run this command in the command line inside my laravel project directory it gives me error

'phing' is not recognized as an internal or external command, operable program or batch file. 'phing' 不是内部或外部命令、可运行程序或批处理文件。

please note that i have installed phing package through composer and it successfully installed because i can see it in my composer.json file请注意,我已经通过 composer 安装了 phing package 并成功安装,因为我可以在我的 composer.json 文件中看到它

 { "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^7.3|^8.0", "aimeos/ai-client-html": "2020.10.x-dev", "aimeos/aimeos-laravel": "~2020.10", "fideloper/proxy": "^4.4", "fruitcake/laravel-cors": "^2.0", "gettext/gettext": "^5.5", "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.12", "laravel/jetstream": "^2.1", "laravel/sanctum": "^2.6", "laravel/tinker": "^2.5", "livewire/livewire": "^2.0", "phing/phing": "^2.16" }, "require-dev": { "facade/ignition": "^2.5", "fakerphp/faker": "^1.9.1", "laravel/sail": "^1.0.1", "mockery/mockery": "^1.4.2", "nunomaduro/collision": "^5.0", "phpunit/phpunit": "^9.3.3" }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true }, "extra": { "laravel": { "dont-discover": [] } }, "autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/" }, "classmap": [ "ext/moudhah/lib/custom/src", "ext/moudhah/controller/common/src", "ext/moudhah/controller/frontend/src", "ext/moudhah/controller/jobs/src", "ext/moudhah/client/html/src", "ext/moudhah/client/jsonapi/src", "ext/moudhah/admin/jqadm/src", "ext/moudhah/admin/jsonadm/src" ] }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "minimum-stability": "dev", "prefer-stable": true, "scripts": { "post-update-cmd": [ "@php artisan migrate", "@php artisan vendor:publish --tag=public --force", "\\Aimeos\\Shop\\Composer::join" ], "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] } }

the reason why i posted that question here instead of aimeos forum because i think it is some kind of composer issue我之所以在此处而不是在Aimeos论坛上发布该问题,是因为我认为这是某种作曲家问题

If you didn't add it to your path it won't be found.如果你没有将它添加到你的路径中,它将不会被找到。 Most (all?) packages installed via composer have their exec's in the vendor/bin folder.大多数(全部?)通过 composer 安装的软件包在vendor/bin文件夹中都有它们的 exec。 phing is no exception to this. phing也不例外。

Assuming you're on Linux you need to run假设您在 Linux 上,您需要运行

./vendor/bin/phing

from inside your project folder.从您的项目文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM