sudo laravel command not found

Submitted by dravenk on Thu, 03/23/2017 - 23:02

laravel安装问题:
laravel new blog//laravel命令可用
sudo laravel new blog //不可用
提示:
sudo laravel command not found


echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' > ~/.bashrc
source ~/.bashrc
chmod +x ~/.composer/vendor/laravel/installer/laravel
sudo ln -s ~/.composer/vendor/laravel/installer/laravel /usr/bin/laravel