小皮(phpstudy)面板环境中,phpstorm命令行执行Composer需要开启openssl拓展才能使用的巨坑,

跟标题有同样环境的旁友可以继续看,百度有一大把教你如何开启openssl,什么去分号啦,下载ca证书啦...通通操作后还是抛出异常:

[Composer\Exception\NoSslException]

The openssl extension is required for SSL/TLS protection but is not available.
 If you can not enable the openssl ex tension, you can disable this error, 
at your own risk, by setting the 'disable-tls' option to true.

啥原因百度有大把,这里提示说执行

composer config -g -- disable-tls true

可以解决问题,然!并!卵!执行过后依然抛出上面的异常

治标不治本解决方案:

C:\Users\Administrator\AppData\Roaming\Composer找到config,json文件,直接修改

"disable-tls": true,

尝试行不行,如果还不行

解决方案2:

各种修改配置文件后,不使用phpstorm自带的命令行工具执行composer命令,使用小皮面板自带的composer命令行工具

原来坑都是phpstorm引起的

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值