filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
19.01k stars 2.94k forks source link

Unable to install #13360

Closed Shaz3e closed 4 months ago

Shaz3e commented 4 months ago

Package

filament/filament

Package Version

v3.2

Laravel Version

v11.9

Livewire Version

v3.0.0

PHP Version

PHP 8.2.13

Problem description

When I run the following command

composer require filament/filament:"^3.2" -W

I showed the following logs

The "3.2" constraint for "filament/filament" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update filament/filament --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/console[v10.0.0, ..., v10.48.14] require nunomaduro/termwind ^1.13 -> found nunomaduro/termwind[v1.13.0, ..., v1.15.1] but these were not loaded, likely because it conflicts with another require.                                                                    
    - filament/filament v3.2.0 requires illuminate/console ^10.0 -> satisfiable by illuminate/console[v10.0.0, ..., v10.48.14].             
    - Root composer.json requires filament/filament 3.2 -> satisfiable by filament/filament[v3.2.0].                                        

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

Expected behavior

Expected behavior was to install the filament but installation stopped due to log mentioned log

Steps to reproduce

Install fresh laravel

laravel new "yourproject"

without breeze and mysql

Reproduction repository (issue will be closed if this is not valid)

repo

Relevant log output

The "3.2" constraint for "filament/filament" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update filament/filament --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/console[v10.0.0, ..., v10.48.14] require nunomaduro/termwind ^1.13 -> found nunomaduro/termwind[v1.13.0, ..., v1.15.1] but these were not loaded, likely because it conflicts with another require.                                                                    
    - filament/filament v3.2.0 requires illuminate/console ^10.0 -> satisfiable by illuminate/console[v10.0.0, ..., v10.48.14].             
    - Root composer.json requires filament/filament 3.2 -> satisfiable by filament/filament[v3.2.0].                                        

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

Donate 💰 to fund this issue

Fund with Polar

github-actions[bot] commented 4 months ago

Hey @Shaz3e! We're sorry to hear that you've hit this issue. 💛

However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?

We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.

github-actions[bot] commented 4 months ago

Thank you for providing reproduction steps! Reopening the issue now.

pau1phi11ips commented 4 months ago

@Shaz3e I just used composer require filament/filament -W and it installed OK. I had the same error with the 3.2 constraint.

Jubeki commented 4 months ago

Do you maybe use Windows? The ^ is an escape character in the Windows terminal and is therefor removed before executing composer. You could try it with filament/filament:^^3.2 or filament/filament:^^^^3.2. This should not be filament specific, and should happen with any composer package which defined a constraint.

Shaz3e commented 4 months ago

Yes when I install without any extra flag it works and following is working fine

composer require filament/filament
albertdimasa commented 3 months ago

I have same error too and i use command like this. Maybe because i use laragon

composer require filament/filament --ignore-platform-req=ext-zip

heartbreakproductions commented 2 months ago

I am getting the same problem i cant install filament. when i use

composer require filament/filament

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

Problem 1

To enable extensions, verify that they are enabled in your .ini files:

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

help :(

Misbahur commented 2 months ago

I have same error too and i use command like this. Maybe because i use laragon

composer require filament/filament --ignore-platform-req=ext-zip

thanks it's work

kidereo commented 2 months ago

I too had these errors installing Filament on Windows 10 using Herd. Running composer require filament/filament --ignore-platform-req=ext-zip as recommended above solved the issue.

Asadktk commented 2 months ago

i have same error when i install without version like that composer require filament/filament the error was resolve

ammarfillet commented 1 month ago

@Shaz3e I just used composer require filament/filament -W and it installed OK. I had the same error with the 3.2 constraint.

YO THANKYOU SO MUCH

Ahmad-Fathy commented 1 month ago

just enable zip extension in php.ini