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原来就是启用的,老是提示这个错误,不知道怎么处理。
我有尝试直接进对应的网页,是可以的,网络应该是正常的。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
开启allow url fopen