我正在尝试在我的系统上安装laravel 5.4,我已按照步骤安装它,但我不确定我在哪里做错了。 我正在使用Windows 10,当我运行命令
composer global require "laravel/installer"
显示错误“内容长度不匹配”。
laravel new myproject
'laravel' is not recognized as an internal or external command,
operable program or batch file.
php -v 输出:
PHP 7.1.1 (cli) (built: Jan 18 2017 18:51:14) ( ZTS MSVC14 (Visual C++ 2015) x86 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
当我运行此命令时
composer create-project --prefer-dist laravel/laravel blog
显示此错误
The "https://packagist.org/packages.json" file could not be downloaded: SSL: Handshake timed out
Failed to enable crypto
failed to open stream: operation failed
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
此外,我已将“C:\ Users \ AAMIR \ AppData \ Roaming \ Composer \ vendor \ bin”添加到环境变量中的Path变量中。 现在我坚持这个问题。任何帮助深表感谢。感谢。
答案 0 :(得分:1)
如果您使用其他选项,恕我直言会更好:
O(n*logm)