首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Install命令在Composer中无效

Install命令在Composer中无效
EN

Stack Overflow用户
提问于 2013-06-07 16:50:48
回答 1查看 6.8K关注 0票数 2

我正在尝试安装composer。我用windows installer下载的。我的composer.json看起来像这样

代码语言:javascript
复制
{
    "require": {
        "monolog/monolog": "1.2.*"
    }
}

现在,当我尝试运行composer install命令时,它给出了以下错误。

代码语言:javascript
复制
C:\ProgramData\Composer\bin>php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing monolog/monolog (1.2.1)
    Downloading: 100%
    Downloading: 100%
    Downloading: connection...
Could not fetch http://nodeload.github.com/Seldaek/monolog/zip/1.2.1, enter your GitHub credentials to access private repos
The credentials will be swapped for an OAuth token stored in         C:/Users/RUMMAN/AppData/Roaming/Composer/config.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username: 
Password:

如果我将它们设置为空,则会出现以下错误

代码语言:javascript
复制
  [Composer\Downloader\TransportException]
  The "https://api.github.com/authorizations" file could not be downloaded: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
  failed to open stream: Invalid argument


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]

顺便提一下,我已经在php设置中启用了open SSL。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-06-07 17:03:46

如果您真的为php CLI启用了openSSL,那么当您在终端中运行php -m时,它应该会出现。如果没有,请运行php --ini并编辑显示在此命令输出中的php.ini。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16979949

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档