awssat / tailwindo

🔌 Convert Bootstrap CSS code to Tailwind CSS code
MIT License
1.09k stars 108 forks source link

Can't install with symfony/console ^4 #11

Closed benjivm closed 6 years ago

benjivm commented 6 years ago
$ composer global require awssat/tailwindo
Using version ^2.0 for awssat/tailwindo
./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 awssat/tailwindo ^2.0 -> satisfiable by awssat/tailwindo[2.0].
    - Conclusion: remove symfony/console v4.0.8
    - Conclusion: don't install symfony/console v4.0.8
    - awssat/tailwindo 2.0 requires symfony/console ^3.0 -> satisfiable by symfony/console[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.1, v3.1.10, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9, v3.2.0, v3.2.1, v3.2.10, v3.2.11, v3.2.12, v3.2.13, v3.2.14, v3.2.2, v3.2.3, v3.2.4, v3.2.5, v3.2.6, v3.2.7, v3.2.8, v3.2.9, v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.15, v3.3.16, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.4.4, v3.4.5, v3.4.6, v3.4.7, v3.4.8].
   ...
    - Can only install one of: symfony/console[v3.4.5, v4.0.8].
    - Can only install one of: symfony/console[v3.4.6, v4.0.8].
    - Can only install one of: symfony/console[v3.4.7, v4.0.8].
    - Can only install one of: symfony/console[v3.4.8, v4.0.8].
    - Installation request for symfony/console (locked at v4.0.8) -> satisfiable by symfony/console[v4.0.8].

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

I believe this is because I use FriendsOfPHP/PHP-CS-Fixer globally, here my global composer.json file:

{
    "require": {
        "friendsofphp/php-cs-fixer": "^2",
        "laravel/installer": "^2",
        "h4cc/wkhtmltopdf-amd64": "^0.12.4",
        "h4cc/wkhtmltoimage-amd64": "^0.12.4",
        "phpunit/phpunit": "^7"
    }
}

I think the following in this package's composer.json will fix this:

...
"require": {
        "php" : "~7.0",
        "symfony/console": "^3.0 || ^4.0"
},
...
BSN4 commented 6 years ago

done ! .. thank you

Installation command : composer global require awssat/tailwindo dev-master

simonj commented 6 years ago

Had same issue! thanks