@synchro You also need to call composer update mirrors before running composer update: https://nova.laravel.com/docs/4.0/upgrade.html#updating-composer-dependencies
Jul 7, 2022
3
Level 2
Trouble installing Nova 4 - repository not found
I'm upgrading from Nova 3 to 4. I have added the repo and updated the nova package version in composer.json, and set my email and key in auth.json, but when I do composer update --prefer-dist, I get this error:
Installing dependencies from lock file (including require-dev)
Package operations: 7 installs, 19 updates, 3 removals
Failed to download laravel/nova from dist: /Users/marcus/Sites/myproject/vendor/laravel/nova does not exist and could not be created.
Now trying to download from source
- Syncing laravel/nova (4.11.1) into cache
In Git.php line 484:
Failed to execute git clone --mirror -- 'https://ghp...7GE:[email protected]/laravel/nova.git' '/Users/marcus/Library/Caches/composer/vcs/git-github.com-laravel-nova.git/'
Cloning into bare repository '/Users/marcus/Library/Caches/composer/vcs/git-github.com-laravel-nova.git'...
remote: Repository not found.
fatal: repository 'https://github.com/laravel/nova.git/' not found
If I try without an auth.json present it doesn't ask me for credentials, which the docs say it should. Any ideas why it's failing to install?
Level 2
I eventually solved this by deleting my vendor folder and reinstalling.
1 like
Please or to participate in this conversation.