win10x64专业版安装laravel时报错

E:\>laravel new blog
Crafting application...

  [GuzzleHttp\Exception\RequestException]
  Error creating resource: [message] fopen(http://cabinet.laravel.com/latest.zip): failed to open stream: Unable to f
  ind the socket transport "http" - did you forget to enable it when you configured PHP?
  [file] C:\Users\xiaoyi_wang\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
  [line] 324
  [RuntimeException]
  Error creating resource: [message] fopen(http://cabinet.laravel.com/latest.zip): failed to open stream: Unable to f
  ind the socket transport "http" - did you forget to enable it when you configured PHP?
  [file] C:\Users\xiaoyi_wang\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
  [line] 324

new [--dev] [--force] [--] [<name>]

E:\>

执行laravel new blog时出现上面的错误,网上查好像都是说启用openssl就可以了,我的extension=php_openssl.dll原来就是启用的,老是提示这个错误,不知道怎么处理。
我有尝试直接进对应的网页,是可以的,网络应该是正常的。

阅读 2.8k
1 个回答

开启allow url fopen

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题