json - How can I resolve "Your requirements could not be resolved to an installable set of packages" error? -


when run composer update receive wired output.

enter image description here

here composer.json like.

enter image description here

how fix ?

your software dependencies have incompatible version conflict.

at same time want install laravel 4.2.x version, , "zizaco/entrust" it's master branch. , master branch requires @ least laravel 5.0 (roughly speaking).

the problem comes dependency on branches. it's package zizaco/entrust once using laravel 4.2 in it's master branch, , able install dependencies @ day. moment branch gets updated incompatible version requirement, never ever able run composer update , updated dependencies.

always use tagged versions! ideally use relaxed version requirement allows compatible updates. should expressed tilde-two-number version requirement: ~1.2 install version 1.2.0 , (like 1.2.99 or 1.2.100), , 1.3 , up. if need patch release: caret-three-number version ^1.2.10 install 1.2.10 or up, 1.3 , up.

using version requirement instead of dev-master allow use released versions instead of unstable state in master branch, , allows address recent version still works laravel 4.2. guess zizaco/entrust version 1.3.0, version 1.2 qualify. go "zizaco/entrust": "~1.2".


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -