Cannot install CakePHP in Mac OS X

When trying to install CakePHP with composer in Mac OS terminal and Mamp, I get this message :
Could not parse version constraint cakephp-3.x: Invalid version string “cak

create-project [-s|–stability STABILITY] [–prefer-source] [–prefer-dist] [–repository REPOSITORY] [–repository-url REPOSITORY-URL] [–dev] [–no-dev] [–no-custom-installers] [–no-scripts] [–no-progress] [–no-secure-http] [–keep-vcs] [–remove-vcs] [–no-install] [–ignore-platform-reqs] [–] [] [] []

Composer version 1.8.4 2019-02-11 10:52:10

Yes, cakephp-3.x is not a valid version number.
Try using cakephp@3.*.

Which exact command are you using?

I tried this one :
composer create-project –prefer-dist cakephp/app whatever
(for “whatever”, I tried several strings, including your suggestion or “whatever”).

composer version 1.8.4
php 7.1.23

That’s odd…

the command used seems to be fine…

It appears that the intl php extension is not installed. Could it be the reason ?

It shouldn’t be the reason why it doesn’t install…
An alternative way to install it would be to download the ZIP and just use that (it’s tbh the way I always roll).

I’ll make it this way until I find a way.

Thank you very much for taking time to help me.

No problem :slight_smile:
If you find a solution later down the road, make sure to update this post so others will have an easier time fixing it :stuck_out_tongue:

I will not forget :slight_smile:

replace –prefer-dist with --prefer-dist

Notice the double - and not the unicode -

1 Like

Bravo ! Your eyes are better than mine. And Thank you.
But, as I guessed, I cannot install cake 3.x because the intl extension is missing.
If someone knows how to install this in Mac OS 10.14, let me know.