php - composer安装包报错
本文介绍了php - composer安装包报错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
我在安装这个包
composer global require "fxp/composer-asset-plugin:~1.1"
提示了以下信息
The openssl extension is required for SSL/TLS protection but is
not available. If you can not enable the openssl extension, you
can disable this error, at your own risk, by setting the 'disabl
e-tls' option to true.
是不是说如果把tls禁用掉就可以继续用了,然后后果自负?
补充,我把php里面的php.ini的openssl扩展打开了
经大神指导已经解决,主要是php.ini没有设置扩展路径的的原因。
而且我之前下过wamp,系统环境变量里面有残留的路径,要删掉
php.ini里设置
extension_dir = "ext"
解决方案
php的openssl扩展没开,编辑php.ini打开openssl扩展之后即可
这篇关于php - composer安装包报错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文