Comments (11)
Hey Jess(@jessarcher),
At first glance, I was gonna say that no problems would arise from that.
Alas, I was in error:
$ composer global require laravel/installer:^5.3
Changed current directory to /home/gcarreno/.config/composer
./composer.json has been updated
Running composer update laravel/installer
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires laravel/installer ^5.3 -> satisfiable by laravel/installer[v5.3.0].
- laravel/installer v5.3.0 requires symfony/console ^6.2|^7.0 -> found symfony/console[v6.2.0, ..., v6.4.2, v7.0.0, v7.0.1, v7.0.2] but the package is fixed to v4.4.49 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Nonetheless, and following the provided hint to add -W
, now all is well!!
Also checked if anything else on my global
was broken, but all is good there as well!!
But, still, and I apologise for keep mentioning this, that is not what the current 10.x docs mentions one to do!!
I'm still waiting for the update being reflected on packagist
. This is if no one wants to edit the current 10.x docs!!
@jessarcher: Many thanks for your, most precious, time in helping us come to a fruitful conclusion!!
Cheers,
Gus
from installer.
Hey Dries(@driesvints) and Jess(@jessarcher),
This is rather quite odd and I'm unable to explain it!!
Since I'm banging about packagist
and composer
and all that, I went to packagist
to confirm what was the latest version.
To my utter surprise, packagist
does INDEED list version 5.4.0
as the latest.
I'm now quite baffled as to why my system just decided to installed 2.3.0
π€·
I do apologise for the fact that I pulled you into this wild goose chase when the issue clearly resided on some fluke in my system!!!
My sincere thanks to you both for coming along on this ride and providing your precious time to it!!! π«
Cheers,
Gus
from installer.
Please update to the latest release.
from installer.
Hey Dries(@driesvints),
This is not a very wise solution!! This is just a "shoo, go away, don't bother me, I have better things to do" kinda answer.
And why do I say that? Simples: I was following the current 10.x Laravel
documentation.
If you follow the most updated and currently provided documentation, you should have some trust that it's gonna work.
So... you either update the package on packagist.org
with a new release, or someone has to amend the current Laravel
documentation to remove the Laravel
installer option.
Wouldn't you agree?
Cheers,
Gus
from installer.
Hey Gus. We donβt maintain 2.x anymore. Please upgrade to 5.x and see if that version works. As per our support policy we only support the latest major releases of our packages.
from installer.
Hey Dries(@driesvints),
Would never imply that you maintain stuff that is that old. If it did come across like that, I offer my deepest apologies!!
What I did want to stress out, is that your 10.x docs, the most recent ones I believe, are telling prospect users to do:
$ composer global require laravel/installer
which I did and got version 2.3.0 from packagist
!!
Someone should fix that with a new version being released so packagist
delivers 5.x and not 2.3.0. That's the only thing I want to stress out!!
Again, I was just a naive user following the latest docs, and I got in trouble...
Hope this clarifies the entire dilema π π« !!
Cheers,
Gus
from installer.
Hey @gcarreno, can you tell me what version of PHP you have? (php -v
)
from installer.
Hey Jess(@jessarcher):
My specs:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo
$ php -v
PHP 8.2.10-2ubuntu1 (cli) (built: Sep 5 2023 14:37:47) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.10, Copyright (c) Zend Technologies
with Zend OPcache v8.2.10-2ubuntu1, Copyright (c), by Zend Technologies
$ composer --version
Composer version 2.6.6 2023-12-08 18:32:26
Hope this helps !!
Cheers,
Gus
from installer.
Thanks, Gus.
All looks good - I'd have expected you to get the latest version of the installer. I can't see any obvious dependencies in versions greater than 2.3.0 that you wouldn't have.
Can you please try running composer global require laravel/installer:^5.3
and see if Composer gives you any error messages that might point to the culprit?
from installer.
I'm glad that solved it, Gus! I'll chat with Dries about potential documentation improvements. Not sure what we can do about Packagist short of removing the old versions so composer errors out instead of installing something that no longer works.
from installer.
which I did and got version 2.3.0 from packagist!!
ooh I didn't get that indeed. Thanks for clarifying. We'll improve the docs about this for sure.
from installer.
Related Issues (20)
- Cannot Install Pest on some shells HOT 4
- "globally installing the Laravel installer via Composer" $PATH issue? HOT 2
- Installer doesn't setup scaffolding for inertia ssr when combined by typescript option HOT 1
- Using the --dev switch produces an unresolvable composer.json file. HOT 1
- Option --branch isn't working HOT 3
- Installation not working HOT 14
- Not installing usable Jetstream + Livewire scaffolding HOT 1
- Docs link broken/missing from docs HOT 2
- Error installing Laravel on a Github Codespace (it worked yesterday 2023-12-18) HOT 4
- Add check to installer to see if you're on the latest version
- Database option HOT 1
- Incorrect version of the Pest package HOT 5
- issues when install laravel with mysql HOT 3
- [11.x] The config files are back in the skeleton HOT 2
- Laravel 11 laravel/installer 5.6 not tagged HOT 1
- Removing unnecessary migration prompt when database connection settings are not configured HOT 1
- Option to select database type from command line HOT 1
- Database name is set to directory even with an actual DBMS set in options HOT 2
- Database.sqlite is created even if you slect mysql HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from installer.