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
17.48k stars 2.73k forks source link

Unable to install 2.0 #1051

Closed malpaso closed 2 years ago

malpaso commented 2 years ago

Package

filament/filament

Package Version

v2.0

Laravel Version

v8.6.10

Livewire Version

v2.8

PHP Version

PHP 8.1.1

Bug description

Unable to install Filament, receive the message below `composer require filament/filament:^2.0

[InvalidArgumentException] Could not find package filament/filament in a version matching "2.0" and a stability matching "dev".

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] []...`

Steps to reproduce

composer require filament/filament:^2.0

Taken from Filament Installation

Relevant log output

No response

danharrin commented 2 years ago

As mentioned on Discord, you don't have PHP 8 installed.

CreateWithCoding commented 2 years ago

I'm receiving this error too: " [InvalidArgumentException] Could not find package filament/filament in a version matching "2.0" and a stability matching "dev"

I do have PHP 8.1.2

Screenshots below including Composer Diagnose:

image

image

danharrin commented 2 years ago

Try just composer require filament/filament

CreateWithCoding commented 2 years ago

Yes, that worked perfectly: composer require filament/filament

I wonder why it didn't work with this: composer require filament/filament:^2.0 from here: https://filamentadmin.com/docs/2.x/admin/installation

image

danharrin commented 2 years ago

We were getting lots of questions asking why v1 was installing when they hadn't followed the v2 system requirements properly 😂 :^2.0 works well for most people I think, not sure why its different for some people. Maybe it's Windows?