You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Minify项目Composer安装报错问题咨询

Fixing Composer Install Errors: Unresolvable Package Set

Let's break down these two issues stopping your composer install from working and fix them one by one:

Issue 1: "scrapbook/psr-cache" package not found

The error hits the nail on the head here—you've almost certainly got a typo in the package name. There's no official scrapbook/psr-cache package available on Packagist.

The correct Scrapbook package that implements PSR cache standards (both PSR-6 and PSR-16) is scrapbook/cache. To fix this:

  • Open your composer.json file
  • Locate the require or require-dev section where scrapbook/psr-cache is listed
  • Replace it with a valid version constraint like "scrapbook/cache": "^0.5" (check Packagist for the latest stable version if needed)
  • Or skip editing the file manually and run this terminal command to auto-update your dependencies:
    composer require scrapbook/cache
    

Issue 2: "satooshi/php-coveralls dev-master" version doesn't exist

The dev-master branch for this package was retired some time ago. The active development branches are now 1.0.x-dev and 1.1.x-dev, with stable releases going up to 1.1.x.

You’ve got two solid options here:

  1. Use a stable version (recommended) for reliable, consistent builds:
    Update your composer.json to use a constraint like "satooshi/php-coveralls": "^1.1", or run:
    composer require satooshi/php-coveralls:^1.1 --dev
    
  2. Use a development branch if you need unreleased features:
    Swap out dev-master for 1.1.x-dev in your composer.json, or run:
    composer require satooshi/php-coveralls:1.1.x-dev --dev
    

Once you’ve fixed both package references, run composer install again—it should resolve the dependencies without a hitch.

内容的提问来源于stack exchange,提问作者Omer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 07:37:21