drush-bash: drush: command not found

新装的composer和php 8.3

drush随着project的code一起下载的

但是用drush command的时候提示-bash: drush: command not found

明明project里面又安装了drush 13.4

这个时候要做的是一点小修改

在user的目录里,比如我的是root,那就是 /root/.bash_profile

在这个文件里加上:

# include the current `vendor/bin` folder (Notice the `.` - This means current directory)
PATH="./vendor/bin:$PATH"

重点是后面那句path

保存

然再启动新的终端即可。

Tags

blog学术分类

编辑手记和后续补充