“homestead command not found” even after Installing laravel homestead in Linux mint 18

此生再无相见时 提交于 2020-01-17 06:09:25

问题


I am trying to install laravel homestead in linux mint 18. I have installed vagrant and virtual box from follwing URLs successfully:

https://www.virtualbox.org/wiki/Linux_Downloads

https://www.vagrantup.com/downloads.html

I have installed homestead with following command

composer global require "laravel/homestead=~2.0"

i have installed composer successfully. when i give composer command in terminal it shows me composer options so it is working correctly. i have also set the PATH file with:

export PATH=~/.composer/vendor/bin:$PATH

If i run echo $PATH it gives me following output:

/home/ahnaf/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

if i run homestead it gives me.

homestead command not found.

but if i restart the terminal and run echo $PATH then the composer path is not there any more. I have browsed through laravel docs , laracasts and in google.Everywhere i found the solution supposed to be to set the PATH which i did, but my problem is still present. dnt know what to do. is there any linux user who can help me to set the homestead?

来源:https://stackoverflow.com/questions/38015849/homestead-command-not-found-even-after-installing-laravel-homestead-in-linux-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!