I want to use Google API client library for PHP in my extension to upload YouTube video. I ran following composer command to add this library.
composer require google/apiclient:~2.0
But I got following error...
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
The key is the last line. The package requires monolog in at least version 1.17, but it is currently locked at 1.16, because Magento installed it too.
You should be able to process in two steps:
require the package but do not install immediately:
composer require --no-update google/apiclient:~2.0
update it together with monolog:
composer update google/apiclient monolog/monolog