Error installing composer-asset-plugin

I am trying to install Yii2 on a windows workstation and am getting the following error when I run the "composer-asset-plugin" install, per the instructions on the Yii download page:

PHP Fatal error: Class ‘Composer\Installer\InstallerEvents’ not found in C:\Users\jim\AppData\Roaming\Composer\vendor\f

xp\composer-asset-plugin\FxpAssetPlugin.php on line 65

Fatal error: Class ‘Composer\Installer\InstallerEvents’ not found in C:\Users\jim\AppData\Roaming\Composer\vendor\fxp\co

mposer-asset-plugin\FxpAssetPlugin.php on line 65

Anyone have any ideas for me?

Thanks,

How do you do it?

Post all the procedures you followed!

Try a: composer self-update

Thanks. I tried that right after I posted and it worked after that.

Sorry I didn’t come back and report it. I got tied up with clients.