To be able to use valet's binary file globally, you need to make sure ~/.composer/vendor/bin directory is in your system's PATH, go ahead and check that using the command:
echo $PATH
Hey,
i am trying to get valet run on my macbook. I have problems with valet install. Error: command not found. Where do I have to run the command? Installed it globally like i was told in the documentation..
Thanks!
To be able to use valet's binary file globally, you need to make sure ~/.composer/vendor/bin directory is in your system's PATH, go ahead and check that using the command:
echo $PATH
Thanks!
To add the required directory to my Path, I had to run the following command:
export PATH=$PATH:~/.composer/vendor/bin
Valet installation successfull :)
Hi, i'm trying to install valet on my mac, but I got an error like this
$ valet install
[DomainException]
Unable to determine linked PHP.
install
what did i do wrong?
Do we have Valet for windows? ;)
@imansyaefulloh Did you installed the correct php version via homebrew? You have to accomplish every step of the installation guide on laravel.com
Yes I did @Brotzka,
this is my path
$ echo $PATH
/usr/local/Cellar/php70/7.0.6/bin:/Users/imansyaefulloh/.node/bin:/usr/local/bin:/Users/imansyaefulloh/.composer/vendor/bin:/Users/imansyaefulloh/.node/bin:/Users/imansyaefulloh/ndk/android-ndk-r10e:/Users/imansyaefulloh/Library/Android/sdk/tools:/Users/imansyaefulloh/Library/Android/sdk/platform-tools:/usr/local/bin:~/.composer/vendor/bin:vendor/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/git/bin:/sw/bin/:/usr/local/bin:/usr/local/:/usr/local/sbin:/usr/local/mysql/bin:/Users/imansyaefulloh/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/:/Users/imansyaefulloh/Library/Android/sdk/tools:/Users/imansyaefulloh/Library/Android/sdk/platform-tools:/Users/imansyaefulloh/.composer/vendor/bin
and my php version
$ php -v
PHP 7.0.6 (cli) (built: Apr 29 2016 04:21:39) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
but, when i'm typing $valet install
$ valet install
[DomainException]
Unable to determine linked PHP.
install
If you have a fresh installation, you may not have the PATH variable contains your home path. So, adding the $HOME variable would require like the following:
export PATH="$PATH:$HOME/.composer/vendor/bin
Well, I am having a different issue. It will not let me create a laravel instance.
Johns-iMac:~ johnfarrar$ valet paths
[
"/Users/johnfarrar/Sites"
]
Johns-iMac:~ johnfarrar$ laravel -v
-bash: laravel: command not found
Johns-iMac:~ johnfarrar$ echo $PATH
~/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Johns-iMac:~ johnfarrar$
And here is trying to run the command.
Johns-iMac:~ johnfarrar$ laravel new blog
-bash: laravel: command not found
I'm having the same problem as @johnfarrar
I use iTerm with Oh My Zsh and ~/composer/vendor/bin is in my $PATH
Valet is running, but laravel new test gives me the same error as above...
brothers i use a windows and i can't use valet on my laptop
can you help me brothers
@rackh Per the Laravel Valet page "Valet only supports Mac.
Make sure that ~/.composer/vendor/bin directory is in your system's PATH, you can check this by running:
echo $PATH
If you can't see it there, then you need to add this to your ~/.bash_profile:
export PATH=$PATH:~/.composer/vendor/bin
I think the problem is with the apache software installed on your system, you can checkout following link which worked for me. https://andrefigueira.com/2017/02/08/how-to-fix-domain-exception-with-valet-for-linux
I know this is an old post, but I am having the same issue where is says "Unable to determine linked PHP." when I run valet install. I have added ~/.composer/vendor/bin to my path as described and php71 is installed as well. I am running High Sierra on my Mac. Any ideas?
Hi human beings! I'm having a different issue than your's. When I try to install valet it pops up in the screen the following error:
Installation failed, reverting ./composer.json to its original content.
Has anyone a clue of what's going on here?
Please or to participate in this conversation.