doupeng3501 2016-08-08 13:56
浏览 513
已采纳

Composer安装失败“无法将要求解析为可安装的软件包集。”

I am trying to install the braunson/fatsecret package with PHP Composer on my local XAMPP installation. https://packagist.org/packages/braunson/fatsecret-laravel

When I try to install it with the following command:

php composer.phar require "braunson/fatsecret:dev-master"

The installation fails, and I get the following message:

Your requirements could not be resolved to an installable set of packages.

Installation failed message

I have installed composer (in my opinion) correctly in /Applications/XAMPP/htdocs/my-folder/ like the documentation says:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
  • 写回答

1条回答 默认 最新

  • dongtu4559 2016-08-08 14:16
    关注

    The package is called braunson/fatsecret-laravel, as per the link you provided to Packagist. Looks like the project's readme is out of date, possibly the package changed names at some point in the past.

    You should be able to just change your command to

    php composer.phar require "braunson/fatsecret-laravel:dev-master"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?