使用composer安装laravel遇到的一些小问题

来源:互联网 发布:存放相册的软件 编辑:程序博客网 时间:2024/04/30 02:10

1.Your configuration does not allow connection to http://ooxx/xxoo.git. See https://getcomposer.org/doc/06-config.md#secure-http for details.

镜像使用用的是http,而原地址是需要https,所以配置下关掉https就好了。

解决方案:

设置一个本地或全局的composer配置:
composer config secure-http false
全局设置: composer config -g secure-http false

  1. zlib_decode(): data error

解决方案:
执行 composer self-update 即可

3.can’t create a Laravel project because mcrypt extension is missing

解决方案:brew reinstall php56-mcrypt

4.用了第三个解决方案后,
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0

解决方案:brew reinstall php56-mcrypt --build-from-source

0 0
原创粉丝点击