RalfEggert / zend-expressive-tutorial

Album tutorial for Zend\Expressive
BSD 3-Clause "New" or "Revised" License
25 stars 15 forks source link

composer issues #21

Closed webdesign7 closed 8 years ago

webdesign7 commented 8 years ago

Hello,

Thanks for the tutorial. Much appreciated ! :)

I got an error when downloading the zend-db through composer : any ideas ( see below ) ? I haven't changed anything in composer.json ( literally downloaded the skeleton through composer then tried to import zend-db through composer.


Sergius-MacBook-Pro:zend-expressive-tutorial sergiu$ composer require zendframework/zend-db Using version ^2.6 for zendframework/zend-db ./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

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

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

Repkit commented 8 years ago

try adding directly in your composer.json file and then run composer update comand

webdesign7 commented 8 years ago

@Repkit thanks for suggestion .. I think it worked this way! .. the only thing now I got this error after composer finishes pulling packages:

[ErrorException]
file_put_contents(/Users/sergiu/Sites/zend-expressive-tutorial/vendor/ocramius/package-versions/src/PackageVersions/Versions.php
): failed to open stream: No such file or directory

geerteltink commented 8 years ago

Something might have messed up the composer plugin. Can you remove ocramius/package-versions manually, do a composer update and then require package-versions again.

webdesign7 commented 8 years ago

Worked as per your suggestion ! Thanks ... however not sure if that would be the right approach as if you do a fresh installation then immediately requiring packages through composer it give some sort of errors .. which then you do need to do manual tweak in order to have it working properly. Apart from that all good .. Cheers

webdesign7 commented 8 years ago

FYI : just noticed that when I have manually required ocramius again it updated composer.json with : "ocramius/proxy-manager": "^2.0" instead of "ocramius/proxy-manager": "^1.0" ( which originally comes with installation )