Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find ~/.composer folder after installing composer

I have installed composer by the instructions given in their site for Ubuntu 16.04. Its giving the usual output after giving the 'composer' command in the terminal. After installing composer, I have downloaded the composer using

composer global require "laravel/installer"

Now to install Laravel, I have to add $HOME/.composer/vendor/bin in my path. But there is no .composer folder in my home directory. Can anybody tell me why this is happening ?

like image 650
MItrajyoti Kusari Avatar asked Jan 02 '26 00:01

MItrajyoti Kusari


1 Answers

In my Ubuntu 16.04.4, after downloading the Laravel installer using

composer global require "laravel/installer"

I found my Laravel here :

~/.config/composer/vendor/laravel/installer/

Then I set my .bashrc using nano ~/.bashrc and export your composer config file :

export PATH="$PATH:$HOME/.config/composer/vendor/bin"

And refresh using source ~/.bashrc in terminal

And Laravel is running, but I did not need any .composer folder as said in the Laravel official site. This answer has helped me a lot.

like image 166
MItrajyoti Kusari Avatar answered Jan 03 '26 16:01

MItrajyoti Kusari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!