I get “Your requirements could not be resolved to an installable set of packages.” when I run composer update

I wrote a an app using laravel 5.2. This app have modules/package. all packages will be located in a folder called modules.

My first package is located in a folder called modules/Mikea/Surveys. Mikea is the vendor’s name and Surveys is the module/package name. Each package has it’s own composer.json file which allows me to configure each package with it’s own composer configs. ( I currently have one package but I can have more later)

In my main composer.json file I am using “path” type in the repositories section like you see in the following composer.json file


{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"laravelcollective/html": "5.2.x-dev",
"mikea/surveys": "*"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1",
"symfony/dom-crawler": "~3.0",
"symfony/css-selector": " ~3.0"
},
"repositories": [
{
"type": "path",
"url": "modules/Mikea/Surveys"
}
],
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\": "app/",
"Modules\": "modules/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-root-package-install": [
"php -r "copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
}
}

in the second composer.json file “the package file” I have the following


{
"name": "mikea/surveys",
"type": "library",
"description": "Survey System",
"authors": [
{
"name": "Mike A",
"email": "[email protected]"
}
],
"repositories": [
{
"type": "package",
"package": {
"name": "mikea/surveys",
"version": "0.1.0",
"source": {
"type": "path",
"url": "modules/Mikea/Surveys"
}
}
}
],
"require": {
"php": ">=5.4.0"
},
"autoload": {
"classmap": [
"database/migrations",
"database/seeds"
],
"psr-4": {
"mikea\Surveys\": "src/"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}

when I run composer update I get the following error


F:xampphtdocsproj>composer update
> php artisan clear-compiled
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 mikea/surveys 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 <http://ift.tt/WBoeQv; for more details.

Read <http://ift.tt/1g1ylKI; for further common problems.

what am I doing wrong here? Why do I get this error?

from Newest questions tagged laravel-5 – Stack Overflow http://ift.tt/1O1t4zZ
via IFTTT

Related Posts

Codeigniter : Parse error: syntax error, unexpected ‘const’ (T_CONST), expecting variable (T_VARIABLE) in Laravel project

I’m getting following error: **Parse error: syntax error, unexpected ‘const’ (T_CONST), expecting variable (T_VARIABLE)** Note : It’s working in local but facing issue in production server. private…

Firebase receive notification while tab is active or on focus

What i want is to be able to perform an action when a user receives a notification while the browser is open and tab is active or…

Laravel’s alias loader does not find class

We have a legacy project that we cannot update and we need to make some changes in symfony’s Response.php in vendor. We have solved this by copying…

Laravel 5 – generic document management

I have a system where you can create different types of unique documents. For instance, one document is called Project Identified and this expects certain inputs. Originally,…

Laravel Nova limit the results in indexQuery

I ran intro a situation where I need to limit the results of a resource to only 3 results. To be more specific, based on the logged…

Auditoria en laravel 5.8 [closed]

Cómo puedo automatizar el registro de actividades de un usuario en laravel? Si un usuario ingresa a un app de laravel, debo guardar toda su actividas, a…

Leave a Reply

Your email address will not be published.