Minify项目Composer安装报错问题咨询
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.jsonfile - Locate the
requireorrequire-devsection wherescrapbook/psr-cacheis 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:
- Use a stable version (recommended) for reliable, consistent builds:
Update yourcomposer.jsonto use a constraint like"satooshi/php-coveralls": "^1.1", or run:composer require satooshi/php-coveralls:^1.1 --dev - Use a development branch if you need unreleased features:
Swap outdev-masterfor1.1.x-devin yourcomposer.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

