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
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.