zendframework / ZFTool

Utility module for maintaining modular Zend Framework 2 applications.
187 stars 102 forks source link

Error install composer #140

Closed guilherme90 closed 7 years ago

guilherme90 commented 7 years ago

I trying run command composer require --dev zendframework/zftool:dev-master and return this error:

` Problem 1

` - zendframework/zend-version 2.4.9 requires zendframework/zend-json 2.4.9 -> satisfiable by zendframework/zend-json[2.4.9].

`- Installation request for zendframework/zftool dev-master -> satisfiable by zendframework/zftool[dev-master].

How can i solve this problem? Thanks

guilherme90 commented 7 years ago

Solved!

adamlundrigan commented 7 years ago

@guilherme90 how did you solve this?

guilherme90 commented 7 years ago

@adamlundrigan

remove the version zend-json:3.0.0, and add version zend-json:2.6.3

adamlundrigan commented 7 years ago

:+1: The module has not (yet?) been updated to use ZF3 components

Duplicate of #133

guilherme90 commented 7 years ago

@adamlundrigan

I'm not using ZF3. but the package zend-json was in the version 3.0.0

adamlundrigan commented 7 years ago

It is a problem with the way version constraints are configured in this module, eg:

"zendframework/zend-version": ">=2.2.2"

This will install zend-version 2.4.9 (since zend-version has no 3.x) which has a hard dependency on zend-json 2.x and so conflicts with you having specified zend-json 3.x in your own constraints list.

guilherme90 commented 7 years ago

Yeah, thanks!

:)

rminaya commented 6 years ago

Please tell me how you did it. write de comman you use to fix this problem