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

Error about nikic/php-parser when installing #95

Open
rawaludin opened this issue Jan 20, 2017 · 5 comments
Open

Error about nikic/php-parser when installing #95

rawaludin opened this issue Jan 20, 2017 · 5 comments

Comments

@rawaludin
Copy link

I'm getting this error when try to install padawan

❯ composer global require mkusher/padawan
Changed current directory to /Users/rahmatawaludin/.composer
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Using version ^0.2.1 for mkusher/padawan
./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 mkusher/padawan ^0.2.1 -> satisfiable by mkusher/padawan[v0.2.1].
    - Conclusion: remove nikic/php-parser v3.0.2
    - Conclusion: don't install nikic/php-parser v3.0.2
    - mkusher/padawan v0.2.1 requires nikic/php-parser ~1.1 -> satisfiable by nikic/php-parser[v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.4.0, v1.4.1].
    - Can only install one of: nikic/php-parser[v1.1.0, v3.0.2].
    - Can only install one of: nikic/php-parser[v1.2.0, v3.0.2].
    - Can only install one of: nikic/php-parser[v1.2.1, v3.0.2].
    - Can only install one of: nikic/php-parser[v1.2.2, v3.0.2].
    - Can only install one of: nikic/php-parser[v1.3.0, v3.0.2].
    - Can only install one of: nikic/php-parser[v1.4.0, v3.0.2].
    - Can only install one of: nikic/php-parser[v1.4.1, v3.0.2].
    - Installation request for nikic/php-parser (locked at v3.0.2) -> satisfiable by nikic/php-parser[v3.0.2].

nikic/php-parser is not currently installed on my machine. Here is my composer.json and composer.lock file

composer.json https://gist.github.com/rawaludin/b16627c47aab49047e94fd3fa7dc3fc4

composer.lock https://gist.github.com/rawaludin/16ddf00269f2fe692382ba7c8b61cbf3

@mkusher
Copy link
Member

mkusher commented Jan 20, 2017

Looks like it won't help, but can you try installing dev-master?

@rawaludin
Copy link
Author

Tried dev-master, here's the result

❯ composer global require mkusher/padawan:dev-master
Changed current directory to /Users/rahmatawaludin/.composer
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
./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 mkusher/padawan dev-master -> satisfiable by mkusher/padawan[dev-master].
    - mkusher/padawan dev-master requires react/http dev-master -> satisfiable by react/http[dev-master] but these conflict with your requirements or minimum-stability.


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

@halftan
Copy link
Contributor

halftan commented Feb 16, 2017

@rawaludin composer require won't work. The only way to install padawan now is to clone this repo and run composer install inside repo directory.

@mkusher
The problem might be this line in composer.json:

    "minimum-stability": "beta"

change it to "minimum-stability": "dev" will make composer happy.

@phux
Copy link

phux commented Apr 11, 2017

Had the same issue.

"minimum-stability": "dev"

In my global composer.json helped.
Thanks @halftan

@musou1500
Copy link

Please try to using "stability flag".
In some case, using minimum-stability not seems to be good way.
https://igor.io/2013/02/07/composer-stability-flags.html

One way to fix the problem would be to just lower your minimum-stability down to "dev". But that's usually a really bad idea, because it applies to all constraints and as a result you will get unstable versions of all packages.
So please, don't do that.

here is my comoposer.json

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/padawan-php/padawan.php"
        }
    ],
    "require": {
        "mkusher/padawan": "dev-master",
        "react/filesystem": "@dev",
        "mkusher/react-co": "@dev"
    }
}

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