laravel / valet

A more enjoyable local development experience for Mac.
https://laravel.com/docs/valet
MIT License
2.52k stars 698 forks source link

Couldn't Install Laravel Valet #1480

Closed ayzerobug closed 7 months ago

ayzerobug commented 7 months ago

Description

I couldn't install valet on Mac OS Sonoma 14.4.1

Steps To Reproduce

composer global require laravel/valet

Gives this response

Changed current directory to /Users/mac/.composer ./composer.json has been updated Running composer update laravel/valet Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require laravel/valet:*" to figure out if any version is installable, or "composer require laravel/valet:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Diagnosis

Cound't install it at all

drbyte commented 7 months ago

It sounds like your ~/.composer/composer.json file has symfony/process: 7.0 hardcoded into it. Valet's latest (4.6.1) release is only tested up to symfony/process v6.x.

So, until Valet is updated, try changing your global composer config to use "symfony/process": "^6.0|^7.0", instead of just 7.0

driesvints commented 7 months ago

Gonna close this since there's a PR open. Thanks.