laravel new blog 终端执行报错处理

% laravel new blog
zsh: command not found: laravel
% sudo vim ~/.zshrc
Password:
# 写入
export PATH=$HOME/bin:/usr/local/bin:~/.composer/vendor/bin:$PATH

% source ~/.zshrc
% laravel new blog
 _                               _
| |                             | |
| |     __ _ _ __ __ ___   _____| |
| |    / _` | '__/ _` \ \ / / _ \ |
| |___| (_| | | | (_| |\ V /  __/ |
|______\__,_|_|  \__,_| \_/ \___|_|

Creating a "laravel/laravel" project at "./bolg"

# 大功告成

你可能感兴趣的:(laravel new blog 终端执行报错处理)