2

Currently, I am in the process of installing Laravel Valet for the purpose of using it to locally develop with Kirby CMS.

I am following these instructions, once I try to install Valet I get a "command not found" error. After looking at other threads I attempted to find my device's Path using this code:

echo $PATH

In response I got this:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/tohumakind/.config/composer/vendor/bin:/Users/tohumakind/.composer/vendor/bin:/Users/tohumakind/.composer/vendor/bin:/Users/tohumakind/.composer/vendor/bin

I wasn't sure what to do in regard to installing Valet? It looks like Composer is installed in my User folder? There's only one user on this device. Do I need to move it Composer to a different part of my computer?

I tried using this line, as recommended in a different thread, but it didn't do anything to solve the 'command not found issue':

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

1 回答 1

3

2019 年,Apple 已将 bash 替换为 zsh 作为 macOS Catalina 及更高版本中的默认 shell。要将路径添加到您的 zsh shell,此命令应该可以工作:

echo "export PATH=$PATH:$HOME/.composer/vendor/bin" >> ~/.zshrc

确保重新启动终端以应用更改。

于 2021-10-02T07:08:23.347 回答