Skip to content
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

bash: valet: command not found #35

Closed
pavinthan opened this Issue Mar 16, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@pavinthan
Copy link

pavinthan commented Mar 16, 2017

bash: valet: command not found

@TheNodi

This comment has been minimized.

Copy link
Collaborator

TheNodi commented Mar 16, 2017

Without many information, I think you didn't add composer's bin directory to your $PATH.

Usually you can do that by adding the following line to the end of ~/.profile file and restart your terminal:

PATH="$HOME/.composer/vendor/bin:$PATH"

Although it depends on your system.

@UksusoFF

This comment has been minimized.

Copy link

UksusoFF commented Mar 17, 2017

If composer installed via apt it have other vendor path. You can find them by composer global help.

echo "export PATH=$PATH:$HOME/.config/composer/vendor/bin" >> ~/.bashrc
source ~/.bashrc
@cpriego

This comment has been minimized.

Copy link
Owner

cpriego commented Mar 23, 2017

If you don't want to add composer global to your path just run the valet "bin" directly. You can use this command to achieve that

test -d ~/.composer && bash ~/.composer/vendor/bin/valet install || bash ~/.config/composer/vendor/bin/valet install
@cpriego

This comment has been minimized.

Copy link
Owner

cpriego commented Mar 23, 2017

This is now solved in the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.