I can't get composer to work. It also fails when I try to deploy to Heroku.
$ composer update
[ReflectionException]
Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist
$ rm -r ~/.composer
$ composer global require fxp/composer-asset-plugin --no-plugins
Changed current directory to /home/Chloe/.composer
Using version ^1.1 for fxp/composer-asset-plugin
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing fxp/composer-asset-plugin (v1.1.4)
Downloading: 100%
Writing lock file
Generating autoload files
$ composer update
[ReflectionException]
Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist
I tried the steps in Composer throws [ReflectionException] Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist and Updating composer throws exception Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist, but it still fails.
I also ran composer self-update
and it still doesn't work.
PHP 5.6.19, Composer version 1.1-dev, Composer version 1.0.2 2016-04-21 12:30:18