composer error /bin/sh: bad interpreter: No such file or directory

时间:2018-06-04 17:17:53

标签: bash laravel composer-php

I have problem when I write any commando with composer

bash: /c/ProgramData/ComposerSetup/bin/composer: /bin/sh: bad interpreter: No such file or directory

I no have Idea about that

1 个答案:

答案 0 :(得分:0)

您可能缺少运行作曲家所需的外部变量。

首先关闭安装作曲家。 然后添加 C:\Users\your_username\AppData\Roaming\Composer\vendor\bin放入外部变量,这应该可以正常工作。

*将your_username替换为您的用户名