Skip to content

Melody script fails #54

Open
Open
@fosron

Description

@fosron

Running this PHP script in the console fails.

( ! ) Fatal error: Uncaught exception 'Symfony\Component\Process\Exception\ProcessFailedException' with message 'The command "'[...]/php-console/composer.phar' 'config' '--global' 'vendor-dir' in [...]/php-console/vendor/symfony/process/Process.php on line 232
( ! ) Symfony\Component\Process\Exception\ProcessFailedException: The command "'[...]/php-console/composer.phar' 'config' '--global' 'vendor-dir'" failed. Exit Code: 1(General error) Working directory: [...]/php-console Output: ================ Error Output: ================ [RuntimeException] The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly in [...]/php-console/vendor/symfony/process/Process.php on line 232

Call Stack
#	Time	Memory	Function	Location
1	0.0005	262600	{main}( )	.../index.php:0
2	0.0050	603208	MelodyPlugin->runScript( )	.../index.php:104
3	0.0056	633112	SensioLabs\Melody\Melody->__construct( )	.../MelodyPlugin.php:42
4	0.0100	971880	SensioLabs\Melody\Composer\Composer->getVendorDir( )	.../Melody.php:47
5	0.0134	1299576	Symfony\Component\Process\Process->mustRun( )	.../Composer.php:86

Script ended unexpectedly.

Ran on

Mac OS X 10.12.4
MAMP PRO 4.1 (Apache 2.2.31, PHP 5.2.68)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions