更新时间:2023-11-22 11:09:40
运行哈希phpunit
在/usr/bin/
文件夹中有一个 phpunit
二进制文件(从错误消息中可以看出).
There was a phpunit
binary in /usr/bin/
folder (as can be seen from the error message).
现在,它已被移至/usr/local/bin/
.
但是bash会存储以前找到的可执行文件位置,并且不会立即对其进行更新,因此应清除旧的/usr/bin/phpunit
位置,以便找到新的可执行文件.
But bash stored the previously found locations of executables and doesn't update them immediately, so the old /usr/bin/phpunit
location should be cleared for the new one to be found.
检查此ServerFault答案以获取更多信息.