A
A
alst1612015-12-31 00:05:25
Composer
alst161, 2015-12-31 00:05:25

How to change composer install path?

We have vps on centos 6.4. We go through ssh to the directory I need and execute the following command

curl  -k -sS https://getcomposer.org/installer | php

everything is fine. I received composer.phar. move on
composer global require "laravel/installer=~1.1"
and see what we get
Changed current directory to /root/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

he created a .composer directory in root.
next question. how to make it work in the aisles of the directory I need?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D', 2015-12-31
@alst161

1) Don't run any commands as root
2) Don't use global if you don't want to install the package globally.

E
Eugene, 2015-12-31
@Nc_Soft

Download composer.phar then just run
Will create a new laravel project in the project_dir folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question