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

Evie's avatar
Level 3

[RuntimeException] Source path "./nova" is not found for package laravel/nova

Hi All,

I'm hoping someone can help me out here! I have installed nova and been testing it locally...works perfectly! When I went to deploy it through laravel forge I got this error

[RuntimeException]                                          
Source path "./nova" is not found for package laravel/nova

ssh key is all good, I'm thinking that I might be missing something on my forge script or env file or it might have something to do with nova authorisations? I've been looking around and I can't seem to find the solution.

here is my forge script

cd /home/forge/ninetyfourmagazine.co.uk
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader

php artisan config:cache

echo "" | sudo -S service php7.2-fpm reload

if [ -f artisan ]
then
    php artisan migrate --force
fi

Here is my composer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.1.3",
        "ctessier/nova-advanced-image-field": "^1.0",
        "fideloper/proxy": "^4.0",
        "guzzlehttp/guzzle": "^6.3",
        "intervention/image": "^2.5",
        "jorenvanhocht/laravel-share": "^3.0",
        "laravel/cashier": "^9.3",
        "laravel/framework": "5.8.*",
        "laravel/nova": "*",
        "laravel/tinker": "^1.0",
        "laravelcollective/html": "^5.8",
        "nesbot/carbon": "^2.17",
        "stripe/stripe-php": "^6.34"
    },
    "require-dev": {
        "barryvdh/laravel-debugbar": "^3.2",
        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.5"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "repositories": [
        {
            "type": "path",
            "url": "./nova"
        }
    ],
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}

any advice would be much appreciated.

0 likes
4 replies
Hayk_D's avatar

@evie Check if /nova directory is on your server, within your application's root directory. If not, it might be added to gitignore and was not sent to the server when you committed and deployed.

1 like
Evie's avatar
Level 3

Thanks for responses....I just checked what was on the server everything was pushed except that nova folder and yip there it is in gitignore as per the installation instructions...so now I'm confused about why adding to gitignore is required? Do I just remove it from gitignore and push to production server or do I need to do something else...it's my first time using nova or any licensed laravel packages for that matter!

Evie's avatar
Level 3

ah yes ignore my last response...I'll install via composer! Thanks a million for your advice :)

Please or to participate in this conversation.