ubuntu laravel: command not found
export PATH=~/.config/composer/vendor/bin:$PATH
source ~/.bashrc
3.8
10
composer global require "laravel/installer"
Thank you!
10
0
4
6
# For mac just run these 2 commands
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Thank you!
6
0
4
6
#these commands executed on Ubunyu 20.04
export PATH=~/.config/composer/vendor/bin:$PATH
source ~/.bashrc
Thank you!
6
0
3.67
6
#For Ubuntu 20.04 this will add laravel command to your PATH from CLI
#and append (>>) to your ~/.bashrc file
export PATH="$PATH:$HOME/.config/composer/vendor/bin" >> ~/.bashrc
#Make sure your terminal does actually use ~/.bashrc and not ~/.bash_profile
#reload terminal path config
source ~/.bashrc
Thank you!
6
0
4.4
5
source ~/.bashrc
Thank you!
5
0
Are there any code examples left?
New code examples in category Shell/Bash