V
V
Vlad Pasechnik2015-08-29 11:30:00
PHP
Vlad Pasechnik, 2015-08-29 11:30:00

How to fix composer error when adding your repository?

Hello.
I decided to finish this widget kartik-v/yii2-widget-sidenav .
Created a fork in my repository jumper423/yii2-widget-sidenav . Made changes.
Now I'm trying to add to composer.json

{
...
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
....
"jumper423/yii2- widget-sidenav": "dev-master",
....
},
...
}

But in response I spits an error
$ composer update
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
- The requested package jumper423/yii2-widget-sidenav could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see for more details.
Read for further common problems.

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Lebedev, 2015-08-29
@jumper423

The version of your package does not meet the stability requirements in the "minimum-stability": "stable" config.
Either specify "minimum-stability": "dev" - not recommended
Or create a v1.0.0 tag for your package, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question