简体   繁体   中英

Creating sample CakePHP Project

Environment:

Mac OS Big Sur Version 11.6
Composer version 2.1.8 2021-09-15 13:55:14
PHP version 8.0.10

I crated a folder for my sample application:

~/cakephp/sample

and copied the latest composer.phar into it:

2262733 Sep 23 17:24 composer.phar

Then per the tutorial on the cakePHP tutorial site:

https://book.cakephp.org/4/en/quickstart.html

I typed the following command, from the ~/cakephp/sample folder:

php composer.phar create-project --prefer-dist cakephp/app:4.* cms

and I'm getting the following error message:

zsh: no matches found: cakephp/app:4.*

Any ideas?

Just remove the version requirement. Composer will load the most recent version.

composer create-project --prefer-dist cakephp/app testing_delete_me

Not sure why the version requirement screws things up, but it does every time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM