Composer安装: Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Request to...
来源:互联网 发布:淘宝怎么修改发货单号 编辑:程序博客网 时间:2024/05/21 15:41
Windows中Composer安装:
https://getcomposer.org/Composer-Setup.exe,下载安装包,运行安装,选择相应的php.ini(此处composer会将此php的路径加入到环境变量)
注:若安装过程中:
Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.orgRequest to https://getcomposer.org/installer failed with errors:SSL: Handshake timed out. Failed to enable crypto. Failed to open stream: operation failed
出现以上错误导致安装不成功的解决办法:
- 下载ca-bundle.crt 文件 (https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt)
- 将ca-bundle.crt 放到任意文件夹中(例如 c:/phpstudy/ca-bundle.crt)
- 找到安装Composer的 php.ini,打开文件,添加以下两行数据
curl.cainfo=c:/phpStudy/ca-bundle.crt
openssl.cafile=c:/phpStudy/ca-bundle.crt - 重新安装Composer应该就能成功了。
composer常用命令:
- composer self-update:
将 Composer 自身升级到最新版本,只需要运行 self-update 命令。它将替换你的 composer.phar 文件到最新版本。 - composer install:
从当前目录读取 composer.json 文件,处理了依赖关系,并把其安装到 vendor 目录下。如果当前目录下存在 composer.lock 文件,它会从此文件读取依赖版本,而不是根据 composer.json 文件去获取依赖。确保了该库的每个使用者都能得到相同的依赖版本。 - composer global require “fxp/composer-asset-plugin:1.1.1” :
申明依赖,增加新的依赖包到当前目录的 composer.json 文件中。
0 0
- Composer安装: Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Request to...
- 学习laravel5,Win7安装Composer-Setup.exe,出错ERR_CONNECTION:Unable to connect to getcomposer.org
- Composer安装出错——Unable to connect to getcomposer.org
- VNC Viewer : Error "unable to connect to hotst: Connection refused (10061)"
- Putty X11 proxy: unable to connect to forwarded X server: Network error:connection refused
- Cassandra学习笔记 --- Connection error: ('Unable to connect to any servers', {'127.0.0.1': ...
- 解决Error: Unable to connect to BackupPC server
- Error: unable to connect to node rabbit@10: nodedown
- Error: unable to connect to node 'rabbit@devlop-ceilo': nodedown
- Unable to connect to the MKS:Internal error
- Error: unable to connect to node rabbit@localhost: nodedown
- Error: Unable to connect to a repository at URL
- rabbitmq Error: unable to connect to node XXX@XXX: nodedown
- Unable to connect device
- Caused by:org.hibernate.HibernateException:Unable to make JDBC Connection
- 安装redshift后Unable to connect to GeoClue. Unable to get location from provider.
- Vmware常见问题:Unable to connect to the MKS: Error connecting to /bin/vmx process
- Unable to establish a connection to adb
- C++ STL 一般总结
- 解决弹出输入法时页面高度变小导致底部上浮的问题
- PyGobject(四十九)布局容器之Layout
- 代码面试最常用的10大算法
- Symbol LS4278扫描枪的蓝牙配对指南
- Composer安装: Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Request to...
- U-BOOT-1.1.6-note-编译部分
- MySQL常用函数
- HDU 5775 Bubble Sort
- Win7系统安装MySQL5.5.21图解
- Codeforces Round #105 (Div. 2) B 模拟
- 51nod 1024 取对数
- 基于数据兼容的软件升级方法、客户端、服务器及系统
- Session的原理