Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MohammedAssafly's avatar

Laravel Nova 4 Installation

Hi there

I just purchase a new Laravel nova 4 license and try to install it via composer so I put the Laravel nova account credentials to the auth.json file and run Composer update I get this


**********************************************
Invalid username/password combination given.
**********************************************
    Failed to download Laravel/nova from dist: Invalid credentials for 'https://nova.laravel.com/dist/laravel/nova/laravel-nova-*******f.zip', aborting. Now trying to download from the source

and then ask me to get a Github access token so I create a new one

now I get this

Failed to execute git clone --mirror 'https://MY-GITHUB-ACCESS-TOKEM:***@github.com/laravel/nova.git'
  '/Users/mohammed/.composer/cache/vcs/git-github.com-laravel-nova.git/'

0 likes
5 replies
Donny5300's avatar

Did you used the license key as a password? I used my Github password and couldnt download it either.

Barreira's avatar

@Donny5300, Its not in documentation, but you have to use the token like password when prompted to after the composer update command. If you dont do that, will get the message:

******************************************************************************
Unable to find Nova (Silver Surfer) license holder with the given license key.
******************************************************************************
    Failed to download laravel/nova from dist: Invalid credentials for 'https://nova.laravel.com/dist/laravel/nova/laravel-nova-2d5a07d0ec51ffd7b6a2a6a91736313afec619b0-zip-721fae.zip', aborting.
    Now trying to download from source

and will be prompted to enter your GitHub token, but gonna not work.

srdjan.pejic's avatar

You should create (or update) auth.json file in which you need to add this credentials:

    "http-basic": {
        "nova.laravel.com": {
            "username": licence email,
            "password":  licence key
        }
    }
}
Daniel-Pablo's avatar

I run into the same issue, PLEASE in order to solve this do the following: As David told me if the project is a fresh project this might not have an auth file so you have to create it first

FIRST RUN THIS CODE

composer config http-basic.nova.laravel.com [email protected] your-license-key
// note that you got to replace with your email and also with the license key

SECOND RUN THIS CODE

composer update --prefer-dist

That should solve it

2 likes

Please or to participate in this conversation.