提问前请务必仔细阅读如何排查故障和常见问题。
问题描述:
运行【composer create-project flarum/flarum .】命令报错
报错内容:
PHP Warning: putenv() has been disabled for security reasons in phar:///usr/bin/co mposer/vendor/composer/xdebug-handler/src/Process.php on line 160
Warning: putenv() has been disabled for security reasons in phar:///usr/bin/compose r/vendor/composer/xdebug-handler/src/Process.php on line 160
PHP Warning: putenv() has been disabled for security reasons in phar:///usr/bin/co mposer/bin/composer on line 57
Warning: putenv() has been disabled for security reasons in phar:///usr/bin/compose r/bin/composer on line 57
Warning: This development build of composer is over 60 days old. It is recommended to update it by running “/usr/bin/composer self-update” to get the latest version.
Creating a “flarum/flarum” project at “./”
Warning from https://mirrors.aliyun.com/composer: Support for Composer 1 is depreca ted and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
[Composer\Downloader\TransportException]
The “https://mirrors.aliyun.com/composer/p/provider-2017%248f788d2accc98ba0f380fa b82c5ddcec06015d3e42ce7b4996d72342c781940b.json” file could not be downloaded (HTTP /1.1 404 Not Found)
create-project [-s|–stability STABILITY] [–prefer-source] [–prefer-dist] [–repo sitory REPOSITORY] [–repository-url REPOSITORY-URL] [–add-repository] [–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>]
调试模式报错内容:
已尝试的解决办法:
网址: