有时候composer install/update的时候会报错或者出现一些不和谐的提示如下面这样:
Downloading: Connecting... Downloading: Connecting... Downloading: Connecting... Failed to download gregwar/captcha from dist: Your configuration does not allow connection to http://packagist.phpcomposer.com. See https://getcomposer.org/doc/06-config.md#secure-http for details.
Now trying to download from source
PS:本人使用的是国内镜像,配置了全局使用:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
问题解决方法:
设置一个本地或全局的composer配置即可解决:
当前本地项目设置:
composer config secure-http false
全局设置:
composer config -g secure-http false
意思是默认禁用https请求,就可以了
参考文章:
http://blog.csdn.net/ownfire/article/details/50923619
http://pkg.phpcomposer.com/
搜索
标签
study
ab
amap
apache
apahe
awk
aws
bat
centos
CFS
chrome
cmd
cnpm
composer
consul
crontab
css
curl
cygwin
devops
di
docker
docker,docker-compose
ethereum
excel
fiddler
fluentd
framework
front-end
git
gitgui
github
glide
go
golang
gorm
grafana
gzip
ioc
item2
iterm2
javascript
jenkins
jsonp
kafka
laradock
laravel
larval
linux
liunux
log
mac
mac, wi-fi
macos
magento
mariaDB
minikube
mongoDB
msp
mysql
netbeans
nginx
nodejs
nohup
npm
nsq
oracle
php
php-fpm
php7
phpstorm
php扩展
Protobuf
python
redis
scp
server
shell
soap
socket
socket5
sql
sre
ssdb
ssh
ssl
study
sublime
swift
system
td-agent
uml
v2ray
vagrant
vagrnat
vim
vpn
vue
vue.js
webpack
webrtc
websocket
webtatic
windows
windows7
word
wps
xdebug
yarn
yii2
yum
zookeeper
世界国家
互联网
以太坊
分类
前端
小程序
打印机
排序算法
搞笑
权限
粤语
缓存
网络
虚拟机
视频
设计模式
项目管理
热门文章
友情链接