使用Laravel创建新项目会引发异常

Med*_*det 17 laravel

我已经安装了具有所有扩展名的Composer,Laravel和PHP 7.1.22。

现在,我尝试使用“ laravel new projectname”创建一个新项目。它在下面引发异常。我该如何解决这个问题?

[GuzzleHttp \ Exception \ ConnectException] cURL错误7:无法连接到本地主机端口1080:连接被拒绝(请参阅http://curl.haxx.se/libcurl/c/libcurl-errors.html

dpa*_*oli 10

If the laravel command fail you can try with composer create-project:

composer create-project --prefer-dist laravel/laravel projectname
Run Code Online (Sandbox Code Playgroud)


小智 9

Try to remove ";" in extensions before the curl extension in your php.ini file.

  • 他写道,安装了所有扩展 (2认同)