Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install composer dependencies #48241

Closed
Chance-fyi opened this issue Aug 30, 2023 · 2 comments
Closed

Unable to install composer dependencies #48241

Chance-fyi opened this issue Aug 30, 2023 · 2 comments

Comments

@Chance-fyi
Copy link

Laravel Version

10.x

PHP Version

8.1.19

Database Driver & Version

No response

Description

I noticed that the tests in the action can install dependencies normally, but after trying various methods, I still cannot install the laravel/prompts package.

Steps To Reproduce

# git clone [email protected]:laravel/framework.git && cd framework && composer install

Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/prompts v0.1.0 requires illuminate/collections ^10.3 -> found illuminate/collections[v10.3.0, ..., v10.21.0] but these were not loaded, likely because it conflicts with another require.
    - laravel/prompts[v0.1.1, ..., v0.1.2] require illuminate/collections ^10.0 -> found illuminate/collections[v10.0.0, ..., v10.21.0] but these were not loaded, likely because it conflicts with another require.
    - laravel/prompts[v0.1.3, ..., v0.1.6] require illuminate/collections ^10.0|^11.0 -> found illuminate/collections[v10.0.0, ..., v10.21.0] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires laravel/prompts ^0.1 -> satisfiable by laravel/prompts[v0.1.0, ..., v0.1.6].
@crynobone
Copy link
Member

Hey there, thanks for reporting this issue.

We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here?

Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.

laravel new bug-report --github="--public"

Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue.

Thanks!

@Chance-fyi
Copy link
Author

I found the reason. I actually executed composer install inside my Docker container, but Git was not installed in my container, so this error occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants