Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

laravel command not found setting path does not work

Tags:

laravel

I am have installed laravel via composer using the following procedure in my Ubuntu 17.04 running on the latest Oracle Virtualbox:

Steps:

1) composer global require "laravel/installer"

2) nano .bashrc

3) I added export PATH="$PATH:$HOME/.composer/vendor/bin"

4) saved changes.

I even added this line to .profile logged out then back in again but I am still getting laravel command not found.

What am I doing wrong?

like image 900
Nigel Smith Avatar asked Aug 08 '17 11:08

Nigel Smith


1 Answers

For MAC users:

In terminal, type follow this:

 1. nano ~/.bash_profile
 2. export PATH="~/.composer/vendor/bin:$PATH"

If you are new in terminal, please try follow this youtube video.

like image 157
Yuyang He Avatar answered Sep 21 '22 18:09

Yuyang He