Composer Install Error: dom-crawler does not exist

Hi,

I’m trying to install composer and I’m getting this error: [RuntimeException] /var/www/html/vendor/symfony/dom-crawler does not exist and could not be created

After exhausting google I created the dom-crawler directory and changed permissions to match the rest of my install. I tried to install composer again and got this error: [RuntimeException] Could not delete /var/www/html/vendor/symfony/dom-crawler:

Composer is installed Composer version 1.10.15 2020-10-13 15:59:09 and as far as I know I have all necessary PHP packages.

AWS Linux2
Apache
MySQL 5.7
SuiteCRM 7.10.27

Any ideas?

Thanks

Andrew

This file might be in the dev package if you check your vendor/consolidation/robo/composer.lock content.

are you using proper command for Composer

composer install --no-dev

Do NOT run the “composer update” command.

Hey @cherub-chum,

Thanks for the reply!

No, I wasn’t using composer install --no-dev I was just using composer install.

composer install --no-dev gives me this error: imgur

I checked vendor/consolidation/robo/composer.lock but I don’t see dom crawler there (at least on a quick browse).

Thanks

Andrew