Hi I am using yii2 and new to this. I am trying to install 2amigos/yii2-date-picker-widget but getting an error like "installation failed reverting ./composer.json to its original content".

I have installed composer and there is composer.json, composer.lock and composer.phar files in my project folder.

I am using this command to install 2amigos/yii2-date-picker-widget : "php composer.phar require 2amigos/yii2-date-picker-widget:~1.0"

I am using windows 8.1 and wamp