So to install I execute this command: “composer require dnadesign/silverstripe-elemental ^4.5”
And receiving this error: Problem 1
- silverstripe/elemental-blocks 1.x-dev requires dnadesign/silverstripe-elemental ^2.0 → satisfiable by dnadesign/silverstripe-elemental[2.1.x-dev].
The latest version of that module available is 4.3.2 so like @Tim said, changing the version restraint to just ^4 should work.
You can also generally omit the version restraint and Composer will try to install the most up to date stable version that’s compatible with your Silverstripe installation. So you could just do composer require dnadesign/silverstripe-elemental.
BTW it looks like you might have assumed that since you’re using SS 4.5 you needed to put 4.5 in your composer command, but if it’s not already clear, that’s not the case. Module version numbers are usually independant of SS framework versions, so a module intended for SS4 might be at version 1, 0.1, 14 or anything at all
Thanks guys. I have tried running both commands that you suggested. But keep getting the same error message.
I removed a package manually, and then run dev/build + ?flush. Is that the correct way to remove an addon/module? Anything needs to be updated in the composer file?