Mac | installing Laravel globally
Here the stpes that i need follow fo install globally laravel on my mac :
1° Install composer globally ( not in you project folder ) :
composer global require "laravel/installer"
2° The official docs say:
Make sure to place the ~/.composer/vendor/bin directory (or the equivalent directory for your OS) in your PATH so the laravel executable can be located by your system.Some people
To do this, open your bash profile in nano, by typeing in terminal :
nano ~/.bash_profile
if you don’t have set the path, do it by copy and paste this :
export PATH="~/.composer/vendor/bin:$PATH"
3° Now we need to instal composer on our project folder, so, go in project folder and execute :
composer install
4° Run laravel
php artisan serve
5° Mantain this terminal window open, and open a new one for install npm
npm install
that’s all, that’s all, from now i f you open a browser page on ” http://localhost:8000/ ” you see that all works.