Skip to content

Error about nikic/php-parser when installing #95

@rawaludin

Description

@rawaludin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions