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

I can not download in laravel 8 #70

Open
lethanhquoc2014 opened this issue Aug 28, 2021 · 10 comments
Open

I can not download in laravel 8 #70

lethanhquoc2014 opened this issue Aug 28, 2021 · 10 comments
Assignees

Comments

@lethanhquoc2014
Copy link

I have an error when I run this command:
php artisan ckfinder:download
=> Could not download the distribution package of CKFinder.
What should I do, please ?

@Besanh
Copy link

Besanh commented Sep 9, 2021

Try it, composer require ckfinder/ckfinder-laravel-package -W

@bmlotek
Copy link
Contributor

bmlotek commented Nov 23, 2022

@lethanhquoc2014 do you still have the problem?

@bmlotek bmlotek self-assigned this Nov 23, 2022
@Djagannath
Copy link

Djagannath commented Jan 16, 2023

I have problem composer require ckfinder/ckfinder-laravel-package -W

Using version ^4.0 for ckfinder/ckfinder-laravel-package
./composer.json has been updated
Running composer update ckfinder/ckfinder-laravel-package --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
- Root composer.json requires ckfinder/ckfinder-laravel-package ^4.0 -> satisfiable by ckfinder/ckfinder-laravel-package[v4.0.0].
- ckfinder/ckfinder-laravel-package v4.0.0 requires laravel/framework ^9.0 -> found laravel/framework[v9.0.0-beta.1, ..., 9.x-dev] but it conflicts with your root composer.json require (^8.6).

You can also try re-running composer require with an explicit version constraint, e.g. "composer require ckfinder/ckfinder-laravel-package:*" to figure out if any version is installable, or "composer require ckfinder/ckfinder-laravel-package:^2.1" if you know which you need.

@bmlotek
Copy link
Contributor

bmlotek commented Jan 17, 2023

From information you have provided, I see that in your composer.json you have "laravel/framework: ^8.6 ". Package needs laravel 9.0 or higher. So it won't work, because your composer.json as it is won't allow you to upgrade your laravel to 9.0.

From composer documentation:

Caret Version Range (^)[

The ^ operator behaves very similarly, but it sticks closer to semantic versioning, and will always allow non-breaking updates. For example ^1.2.3 is equivalent to >=1.2.3 <2.0.0 as none of the releases until 2.0 should break backwards compatibility. For pre-1.0 versions it also acts with safety in mind and treats ^0.3 as >=0.3.0 <0.4.0 and ^0.0.3 as >=0.0.3 <0.0.4.

This is the recommended operator for maximum interoperability when writing library code.

Example: ^1.2.3

Let me know if that was helpful.

@Djagannath
Copy link

which version works with laravel 8?

@zaak
Copy link
Member

zaak commented Jan 18, 2023

@Djagannath: If you are looking for a package for Laravel < 9, please use version 3.

@Djagannath
Copy link

Djagannath commented Jan 18, 2023

trying to install composer require ckfinder/ckfinder-laravel-package "3.5.3"

Problem 1
- league/flysystem-cached-adapter[1.0.6, ..., 1.1.0] require psr/cache ^1.0.0 -> found psr/cache[1.0.0, 1.0.1] but the package is fixed to 3.0.0 (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.
- ckfinder/ckfinder-laravel-package v3.5.3 requires league/flysystem-cached-adapter ^1.0.6 -> satisfiable by league/flysystem-cached-adapter[1.0.6, ..., 1.1.0].
- Root composer.json requires ckfinder/ckfinder-laravel-package 3.5.3 -> satisfiable by ckfinder/ckfinder-laravel-package[v3.5.3].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@bmlotek
Copy link
Contributor

bmlotek commented Jan 18, 2023

@Djagannath make backup of files just in case ;) and now try to delete composer.lock (maybe also removal of vendor will be required) and then try install composer require ckfinder/ckfinder-laravel-package "3.5.3" and add -W or --with-all-dependencies to command. This should help.

@Djagannath
Copy link

@Djagannath make backup of files just in case ;) and now try to delete composer.lock (maybe also removal of vendor will be required) and then try install composer require ckfinder/ckfinder-laravel-package "3.5.3" and add -W or --with-all-dependencies to command. This should help.

working, thx

@bmlotek
Copy link
Contributor

bmlotek commented Jan 19, 2023

@Djagannath I'm glad it worked. Enjoy coding and using ;)

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

No branches or pull requests

5 participants