PacktPublishing / Modernizing-Drupal-10-Theme-Development

Designing Modern Drupal Themes, Published by Packt
MIT License
36 stars 24 forks source link

Clarification needed for composer install –prefer-dist #42

Closed apprentia closed 6 months ago

apprentia commented 9 months ago

Hello,

I am running through the set-up process in the book and when I use :

composer install –prefer-dist

I am getting the following message :

Invalid argument –prefer-dist. Use "composer require –prefer-dist" instead to add packages to your composer.json.

The site is up and running but the theme has not been built as a result.

If I use composer require –prefer-dist I am prompted to choose from a list of profiles but nothing to do with the book, I think.

imaaxa commented 8 months ago

Try composer require --prefer-dist. The editing software used for the book replaced the double hyphen(--) with a different character, (–).

lussoluca commented 6 months ago

Exactly, this has been reported here: https://github.com/PacktPublishing/Modernizing-Drupal-10-Theme-Development/blob/main/ERRATA.md#chapter-1