小池有话说

Fix Deprecation Warning for VersionParser::parseLinks()

2016-01-30

I am learning Yii 2.0. It mentions to

composer global require "fxp/composer-asset-plugin:~1.1.1"

But it throws an Error to my face:

Call to undefined method Composer\Package\Loader\ArrayLoader::parseLinks()

I googled, and it turned out that many people run into this.

But it’s not Composer’s mistake. It is because composer’s version is old but composer-asset-plugin’s version is newer.

You just need to

composer self-update

Done.

但是我们在中国,没办法只得使用一些特殊手段。 We need to set system var http_proxy.

How to set sys var in PowerShell

Done.