Trying to install M2 using Composer with the following:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /var/www/m2
PHP:
PHP 7.4.12 (cli) (built: Oct 31 2020 17:04:09) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies
Composer:
Composer version 1.1.1 2016-05-17 12:25:44
This is the output:
Installing magento/project-community-edition (2.4.1)
Deprecation Notice: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in phar:///usr/bin/composer/src/Composer/Downloader/GitDownloader.php:238
Deprecation Notice: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in phar:///usr/bin/composer/src/Composer/Downloader/SvnDownloader.php:132
- Installing magento/project-community-edition (2.4.1)
Downloading: 100%
Created project in /var/www/m2
Loading composer repositories with package information
Warning from https://packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
[ErrorException]
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
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] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]