laravel / nova-issues

554 stars 34 forks source link

Laravel 5.7 adding nova by composer not possible #701

Closed SDJeff closed 6 years ago

SDJeff commented 6 years ago

Hi,

i updated my project to 5.7 and would like to add Nova how described at the documentation.

I added:

"minimum-stability": "dev", "prefer-stable": true, "repositories": [ { "type": "path", "url": "./nova" } ]

and

"laravel/nova": "*",

at the require section.

Error:

`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.`

SDJeff commented 6 years ago

I added it before at the same computer to a 5.6 project without problems. I had to input my credentials and it runs. It was my first project. Now for this second project with the same installation no chance. Any Ideas?

ghost commented 6 years ago

In my case that error occured by having twice repositories in the composer.json. One from Spark and one from Nova. I had to combine them:

"repositories": {
        "laravel/nova": {
            "type": "path",
            "url": "./nova"
        },
        "laravel/spark": {
            "type": "path",
            "url": "./spark"
        }
    }
SDJeff commented 6 years ago

Sorry. My mistake. "laravel/nova": "~1.0" not "*" if you havent't downloaded the release by the login section. Pls Close!