I'm following the instructions to install composer (found here). I just ran the line php composer-setup.php
and the terminal returned:
All settings correct for using Composer Unable to write keys.dev.pub to: /home/ubuntu/.composer
I'm installing into a Ubuntu VM in Vagrant.
Make sure you have no problems with your setup by running the installer's checks via curl -sS https://getcomposer.org/installer | php -- --check . Try clearing Composer's cache by running composer clear-cache . Ensure you're installing vendors straight from your composer.
You can check your installed composer version using a command composer -v at the current path. Such as: composer -v.
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
While installing the Composer in your Project Directory you may Get this error. Im Using the Ubuntu 16,While installing i faced the Same Issue
Step 1: just go to your Project Directory and run a Command
sudo su
Step 2: then Try to install the Composer using The Following Command
curl -sS https://getcomposer.org/installer | php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With