R
R
Real Meyer2014-10-07 08:31:14
Composer
Real Meyer, 2014-10-07 08:31:14

How to fix an error when running composer install?

The situation is this, there is a Snipe-IT accounting system . To install it, Composer is required , which I have not encountered before. Installed globally using the official site. Following the developer's manual, I performed composer install in the directory with the project files. I got the following error:

[RuntimeException] The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly

A similar question has already been raised here, but I did not find a clear answer for myself on how to fix this. I ask for advice.
Ubuntu Server 14.04LTS

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
Heafy, 2014-10-07
@Heafy

COMPOSER_HOME="~/.composer/vendor/" php composer.phar install

Or where did you install it?

M
Maxim Timofeev, 2016-10-28
@Sergalas

You don't have a file in $_FILE, you can see it from 'tempName' => string '' and error itself about it. See form submit, is it worth multipart/form-data etc.

M
melnikov_m, 2016-10-28
@melnikov_m

public 'error' => int 1 is a constant as I understand it - define ('UPLOAD_ERR_INI_SIZE', 1);
Actually, this is what public 'size' => int 0 is talking about . An
empty file type.
UPD
Look at what you have in the $type variable - is it possible to upload the php file type at all?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question