Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can not get Moltin Laravel Cart to install

I can not get Moltin Laravel Cart to install. It always tells me that Your requirements could not be resolved to an installable set of packages.

Get this output from the Terminal:

Problem 1

  • Installation request for moltin/laravel-cart dev-master -> satisfiable by moltin/laravel-cart[dev-master].

  • moltin/laravel-cart dev-master requires moltin/cart dev-master -> no matching package found.

Potential causes:

  • A typo in the package name
  • The package is not available in a stable-enough version according to your minimum-stability setting

I just have added the requirement in the composer.json file as the tutorial says

...
"require": {
"laravel/framework": "4.1.*",
"intervention/image": "dev-master",
"moltin/laravel-cart": "dev-master"
},
...

Could anybody tell me how to fix it?

like image 623
user3274260 Avatar asked Feb 05 '14 08:02

user3274260


2 Answers

Change

minimum-stability: 'stable' to minimum-stability: 'dev'

Then after

minimum-stability: 'dev'

just add

"prefer-stable": true

like such:

"minimum-stability": "dev",
"prefer-stable": true
like image 103
alexvanzyl Avatar answered Sep 28 '22 15:09

alexvanzyl


You can define all the required packages first as dev-master as this will avoid the required packages not loading due to no stable versions being found. i.e.

"require": {
"laravel/framework": "4.1.*",
"moltin/currency": "dev-master",
"moltin/tax": "dev-master",
"moltin/cart": "dev-master",
"moltin/laravel-cart": "dev-master"
},

Changing the minimum-stability to dev at the bottom of composer.json will also achieve the same. i.e.

"minimum-stability": "dev",
"prefer-stable": true
like image 24
Paul Wright Avatar answered Sep 28 '22 16:09

Paul Wright