笔者本机安装了thinkPHP5.1的项目,通过git传送到CentOS上时,各种错误,百思不得其解。
后来,干脆直接在阿里云CentOS安装,出现了这样的错误:
[Abble@centos7 html]$ composer config -g repo.packagist composer https://packagist.phpcomposer.com
[Abble@centos7 html]$ composer create-project topthink/think=5.1.12 test
[InvalidArgumentException]
Could not find package topthink/think with version 5.1.12 in a version installable using your PHP version 5.4.16.
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] [--] [<package>] [<directory>] [<version>]
[Abble@centos7 html]$
于是,查看文档:

网友评论