1、我本地的composer镜像是国内镜像源,安装laravel5.6.x-dev,提示找不到包
果断切换默认的国际镜像源(需翻墙)
composer config -g repo.packagist composer https://packagist.org
2、openssl错误
php未开启openssl扩展
3、php加入环境变量,需重启电脑生效(暂未发现好方法)
4、镜像使用用的是http,而源地址是需要https,所以配置下关掉https就好了
composer config -l -g,找到home地址
更改home地址下的config.json
之后就可以安装了