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

Installation Failed #27

Closed
ajhaining opened this issue Apr 1, 2016 · 5 comments
Closed

Installation Failed #27

ajhaining opened this issue Apr 1, 2016 · 5 comments

Comments

@ajhaining
Copy link

Not allowing me to install, something to do with symphony/console already being installed...

→ composer global require tightenco/jigsaw
Changed current directory to /Users/Andrew/.composer
Using version ^0.5.0 for tightenco/jigsaw
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for tightenco/jigsaw ^0.5.0 -> satisfiable by tightenco/jigsaw[v0.5.0].
    - Conclusion: remove symfony/console v3.0.4
    - Conclusion: don't install symfony/console v3.0.4
    - tightenco/jigsaw v0.5.0 requires symfony/console ^2.5 -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.2, v2.8.3, v2.8.4].
    - Can only install one of: symfony/console[v2.5.0, v3.0.4].
    - Can only install one of: symfony/console[v2.5.1, v3.0.4].
    - Can only install one of: symfony/console[v2.5.10, v3.0.4].
    - Can only install one of: symfony/console[v2.5.11, v3.0.4].
    - Can only install one of: symfony/console[v2.5.12, v3.0.4].
    - Can only install one of: symfony/console[v2.5.2, v3.0.4].
    - Can only install one of: symfony/console[v2.5.3, v3.0.4].
    - Can only install one of: symfony/console[v2.5.4, v3.0.4].
    - Can only install one of: symfony/console[v2.5.5, v3.0.4].
    - Can only install one of: symfony/console[v2.5.6, v3.0.4].
    - Can only install one of: symfony/console[v2.5.7, v3.0.4].
    - Can only install one of: symfony/console[v2.5.8, v3.0.4].
    - Can only install one of: symfony/console[v2.5.9, v3.0.4].
    - Can only install one of: symfony/console[v2.6.0, v3.0.4].
    - Can only install one of: symfony/console[v2.6.1, v3.0.4].
    - Can only install one of: symfony/console[v2.6.10, v3.0.4].
    - Can only install one of: symfony/console[v2.6.11, v3.0.4].
    - Can only install one of: symfony/console[v2.6.12, v3.0.4].
    - Can only install one of: symfony/console[v2.6.13, v3.0.4].
    - Can only install one of: symfony/console[v2.6.2, v3.0.4].
    - Can only install one of: symfony/console[v2.6.3, v3.0.4].
    - Can only install one of: symfony/console[v2.6.4, v3.0.4].
    - Can only install one of: symfony/console[v2.6.5, v3.0.4].
    - Can only install one of: symfony/console[v2.6.6, v3.0.4].
    - Can only install one of: symfony/console[v2.6.7, v3.0.4].
    - Can only install one of: symfony/console[v2.6.8, v3.0.4].
    - Can only install one of: symfony/console[v2.6.9, v3.0.4].
    - Can only install one of: symfony/console[v2.7.0, v3.0.4].
    - Can only install one of: symfony/console[v2.7.1, v3.0.4].
    - Can only install one of: symfony/console[v2.7.10, v3.0.4].
    - Can only install one of: symfony/console[v2.7.11, v3.0.4].
    - Can only install one of: symfony/console[v2.7.2, v3.0.4].
    - Can only install one of: symfony/console[v2.7.3, v3.0.4].
    - Can only install one of: symfony/console[v2.7.4, v3.0.4].
    - Can only install one of: symfony/console[v2.7.5, v3.0.4].
    - Can only install one of: symfony/console[v2.7.6, v3.0.4].
    - Can only install one of: symfony/console[v2.7.7, v3.0.4].
    - Can only install one of: symfony/console[v2.7.8, v3.0.4].
    - Can only install one of: symfony/console[v2.7.9, v3.0.4].
    - Can only install one of: symfony/console[v2.8.0, v3.0.4].
    - Can only install one of: symfony/console[v2.8.1, v3.0.4].
    - Can only install one of: symfony/console[v2.8.2, v3.0.4].
    - Can only install one of: symfony/console[v2.8.3, v3.0.4].
    - Can only install one of: symfony/console[v2.8.4, v3.0.4].
    - Installation request for symfony/console == 3.0.4.0 -> satisfiable by symfony/console[v3.0.4].


Installation failed, reverting ./composer.json to its original content.

Any ideas on how to fix?

@adamwathan
Copy link
Contributor

Sounds like you have some existing globally installed Composer packages that have a conflicting dependency. The annoying thing with globally installed Composer packages is they all live in the same composer.json, so it's very easy to run into conflicts.

The best solution in your case would be to install Jigsaw locally per project to avoid conflicts.

You can do that by creating a new directory for your project and changing to it:

mkdir my-jigsaw-site && cd my-jigsaw-site

...then using Composer to install Jigsaw locally to that folder:

composer require tightenco/jigsaw

Finally, initialize the default project structure:

./vendor/bin/jigsaw init

We've got documentation for this situation on the installation page, under the "Installing Locally" heading:

http://jigsaw.tighten.co/docs/installation/

@ajhaining
Copy link
Author

I had the latest version on symfony/console (v3.0.4) already installed.

Fixed by adding "tightenco/jigsaw": "^0.5.0" to my global composer.json and running composer global update.

Possible fix to the jigsaw composer.json by allowing a range of versions up to 3.0.*, if indeed that version of symphony/console fits the requirements?

@adamwathan
Copy link
Contributor

Yeah I don't know for sure that symfony/console: ^3.0 is compatible with Jigsaw unfortunately, will have to see what the breaking changes were.

I'm surprised that fixed it, it must have uninstalled the old version of symfony/console when you did the global update? Must not have actually needed ^3.0 for whatever else you had 👍

@ajhaining
Copy link
Author

Yeah it did, the only other thing was Laravel installer which is 2.3 and up.

Just had a play around with Jigsaw, it's brilliant. Good work.

@adamwathan
Copy link
Contributor

Awesome! Thanks @AndrewHaining :)

damiani added a commit that referenced this issue Nov 26, 2018
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

2 participants