DB009 DB009 - 9 months ago 73
PHP Question

Error in Composer install using Wamp and Windows 7

I tried to update my composer to install new packages and got this

the APPDATA or COMPOSER_HOME environment variable must be set up for composer to run correctly

cant seem to find anything on it in google or the IRC

Answer Source

In your cmd prompt.

SET COMPOSER_HOME="C:\path\to\composer"
composer self-update

This article shows you how to set an environment variable to always be available.