-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh: command not found: laravel #429
Comments
It would seem as though perhaps you're expecting the Laravel Installer to be present on your computer, but haven't installed it.
The Laravel Installer is completely separate from Laravel Valet. You can find documentation on using the Laravel Installer in the Laravel documentation. |
Oh I thought that valet pulls it, and I had bunch of laravel packages listed when I did |
Better is to run: |
Cool, didn't know that :D Thanks 👍 |
Also just an FYI, this is not a valet issue. |
Well it happened while I was trying to set up valet, so I thought that I'd ask here ;) |
I have this problem, however, Running
I have this in my .zshrc for composer:
|
Had this exact same problem and the fix was the same as @drbyte said, the only change was using require instead of install: |
@MiguelDebruyne The Laravel Installer is completely separate from Laravel Valet. You can find documentation on using the Laravel Installer in the Laravel documentation. It is not necessary to install the Laravel Installer in order to run Valet. Nor is it necessary to install Valet to use the Laravel Installer. |
My solution was:
|
worked well for me. Looking for this almost two days now |
As of now (2023) the locations of composer executables may have changed. So instead use:
|
6th December 2023 If your a Manjaro user 'PATH="$HOME/.config/composer/vendor/bin:$PATH"' works correctly test 3 times above does work on Ubuntu and other deb based distros |
I installed valet, and followed the documentation, composer is in my
$PATH
, everything is ok. But when I try to runI get
zsh: command not found: laravel
In my
.zshrc
I haveAnd when I echo
$PATH
I haveI restarted terminal, mac, everything I could google, but cannot see what could be wrong.
All the commands in the terminal are working (
composer
andvalet
), I have successfully parked the folderSites
and when I typevalet paths
I get[ "/Users/infinum/Sites" ]
The composer version is 1.5.1, valet version is 2.0.5, php is 7.1.8 and the OS X is version 10.12.6.
I also have VVV installed but it's stopped.
Any ideas why it isn't running?
The text was updated successfully, but these errors were encountered: