markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.53k stars 996 forks source link

Unable to install mpdf library using latest docker magento 247 image #1179

Closed bhushanmeetanshi closed 2 months ago

bhushanmeetanshi commented 2 months ago

Description I am trying to install mpdf library by executing composer require mpdf/mpdf command but its not working. it gives this error as per attatched screenshot. image

Steps To Reproduce

  1. Create your project directory then go into it:

    
    mkdir -p ~/Sites/magento
    cd $_
# Run this automated one-liner from the directory you want to install your project.
`curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento.test 2.4.7 community
`
Install sample data
After the above installation is complete, run the following lines to install sample data:

bin/magento sampledata:deploy bin/magento setup:upgrade

2 .Then install composer `bin/composer install
`
3. Then execute this command:  `composer require mpdf/mpdf`
**Expected Result**

It should be install mpdf library.

**Actual Result**

It gives error as per below

Problem 1

bhushanmeetanshi commented 2 months ago

image

bhushanmeetanshi commented 2 months ago

Please help me to resolve this problem. Thanks!!

bhushanmeetanshi commented 2 months ago

Its my bad wrong command executed so close this issue. Thanks @markshust for docker magento!!