Petro Gromovo
Petro Gromovo

Reputation: 2245

I got composer error with nova licence issue

On laravel 11 site I need manually edit content of nova-permission package and I edited my root composer.json :

"require": {
        ...
        "vyuldashev/nova-permission": "dev-master"
    },


    "repositories": [
        {
            "type": "path",
            "url": "./components/nova-permission",
            "options": {

                "symlink": true
            }
        },
        {
            "type": "composer",
            "url": "https://nova.laravel.com"
        }
    ],

and in /components/nova-permission/composer.json :

{
    "name": "vyuldashev/nova-permission",
    "version": "3.2.0",
    ...

But running composer update I got next:

This token will have read-only permission for public information only.
When you need to access _private_ GitHub repositories as well, go to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+master-at-home+2025-02-19+0904
Note that such tokens have broad read/write permissions on your behalf, even if not needed by Composer.
Tokens will be stored in plain text in "/home/master/.config/composer/auth.json" for future use by Composer.
For additional information, check https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth
Token (hidden):

I opened proposed https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+master-at-home+2025-02-19+0904 page and generated proposed token and copypasted in in composer command :

$ composer update
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:48
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:56
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:879
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:884
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 72 installs, 0 updates, 0 removals
  - Downloading doctrine/lexer (2.1.1)
  - Downloading egulias/email-validator (3.2.6)
  - Downloading monolog/monolog (2.10.0)
  - Downloading laravel/framework (v9.47.0)
  - Downloading rap2hpoutre/fast-excel (v5.6.0)
  - Downloading brick/money (0.10.0)
  - Downloading laravel/nova (4.35.6)
 0/7 [>---------------------------]   0%Warning from nova.laravel.com:

*****************************************************
Your license is not allowed to download this release!
*****************************************************
    Failed to download laravel/nova from dist: Invalid credentials for 'https://nova.laravel.com/dist/laravel/nova/laravel-nova-7db1b2d88e721e4f8f2231d1f7570bf104985272-zip-56a484.zip', aborting.
    Now trying to download from source
  - Syncing laravel/nova (4.35.6) into cache
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
When working with _public_ GitHub repositories only, head to https://github.com/settings/tokens/new?scopes=&description=Composer+on+master-at-home+2025-02-19+0904 to retrieve a token.
This token will have read-only permission for public information only.
When you need to access _private_ GitHub repositories as well, go to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+master-at-home+2025-02-19+0904
Note that such tokens have broad read/write permissions on your behalf, even if not needed by Composer.
Tokens will be stored in plain text in "/home/master/.config/composer/auth.json" for future use by Composer.
For additional information, check https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth
Token (hidden):
Token stored successfully.
 1/7 [====>-----------------------]  14%  - Downloading doctrine/lexer (2.1.1)
  - Downloading egulias/email-validator (3.2.6)
  - Downloading monolog/monolog (2.10.0)
  - Downloading laravel/framework (v9.47.0)
  - Downloading rap2hpoutre/fast-excel (v5.6.0)
  - Downloading brick/money (0.10.0)
 7/7 [============================] 100%
In Git.php line 457:

  Failed to execute git clone --mirror -- 'https://ghp...Z7k:[email protected]/laravel/nova.git' '/home/master/.cache/composer/vcs/git-github.com-laravel-nova.git/'

  Cloning into bare repository '/home/master/.cache/composer/vcs/git-github.com-laravel-nova.git'...
  remote: Repository not found.
  fatal: repository 'https://github.com/laravel/nova.git/' not found


update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]

But why error with cloning nova? My app has licence. Does the composer command try to upgrade the nova(which is not within my licence ) ?

On my nova site I can open some pages ok, but on some page I got error :

403 Hold Up! The government won't let us show you what's behind these doors…

Looks like these are Permisions page or related with it page...

How that can be fixed ?

EDITIVE INFO : Not sure if these errors with "403 Hold Up! " and "Your license is not allowed to download this release!" are related ? But as I had valid licence in /home/user/.config/composer/auth.json file and "laravel/nova": "^4.27.12" worked for me ok.

I check in console :

$ php artisan nova:check-license
Your license key is valid and correctly configured! Thank you for being a Nova customer.

I have these problemsonly after I tried to install and edit nova-permission package in components subdirectory...

EDITIVE INFO # 2 :

Checking at error message I see :

- Downloading laravel/nova (4.35.6)
...

But in my root composer.json I have :

"laravel/nova": "4.27.12",

I can not catch why composer tries to raise nova version ? Looks like it raised an error...

ADDITIVE INFO # 3 :

Running in the root of the app :

$ composer why-not laravel/nova 4.27.12
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:56
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:879
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:884
There is no installed package depending on "laravel/nova" in versions not matching 4.27.12

and in the root of nova-permission package :

$MyProject/components/nova-permission$ composer install --no-cache
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:48
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:56
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:879
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:884
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 73 installs, 0 updates, 0 removals
- Locking brick/math (0.12.1)
- Locking brick/money (0.10.0)
- Locking carbonphp/carbon-doctrine-types (3.2.0)
- Locking day4/tree-view (0.5.1)
- Locking dflydev/dot-access-data (v3.0.3)
- Locking doctrine/dbal (4.2.2)
- Locking doctrine/deprecations (1.1.4)
...
- Downloading brick/money (0.10.0)
- Downloading laravel/nova (4.35.6)
- Downloading spatie/laravel-permission (5.11.1)
59/73 [======================>-----]  80%Warning from nova.laravel.com:

*****************************************************
Your license is not allowed to download this release!
*****************************************************
Failed to download laravel/nova from dist: Invalid credentials for 'https://nova.laravel.com/dist/laravel/nova/laravel-nova-7db1b2d88e721e4f8f2231d1f7570bf104985272-zip-56a484.zip', aborting.
Now trying to download from source
- Installing day4/tree-view (0.5.1): Extracting archive
- Installing doctrine/inflector (2.0.10): Extracting archive
- Installing doctrine/deprecations (1.1.4): Extracting archive
- Installing doctrine/lexer (2.1.1): Extracting archive
- Installing symfony/polyfill-ctype (v1.31.0): Extracting archive
- Installing webmozart/assert (1.11.0): Extracting archive
- Installing dragonmantank/cron-expression (v3.4.0): Extracting archive
- Installing symfony/polyfill-php83 (v1.31.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.31.0): Extracting archive
- Installing symfony/deprecation-contracts (v3.5.1): Extracting archive
- Installing symfony/http-foundation (v6.4.18): Extracting archive
- Installing fruitcake/php-cors (v1.3.0): Extracting archive
- Installing symfony/process (v6.4.15): Extracting archive
- Installing symfony/polyfill-intl-icu (v1.31.0): Extracting archive
- Installing symfony/finder (v6.4.17): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.31.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.31.0): Extracting archive
- Installing symfony/string (v7.2.0): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing symfony/service-contracts (v3.5.1): Extracting archive
- Installing symfony/console (v6.4.17): Extracting archive
- Installing spatie/once (3.1.1): Extracting archive
- Installing openspout/openspout (v4.28.5): Extracting archive
- Installing voku/portable-ascii (2.0.3): Extracting archive
- Installing symfony/polyfill-php80 (v1.31.0): Extracting archive
- Installing phpoption/phpoption (1.9.3): Extracting archive
- Installing graham-campbell/result-type (v1.1.3): Extracting archive
- Installing vlucas/phpdotenv (v5.6.1): Extracting archive
- Installing symfony/css-selector (v7.2.0): Extracting archive
- Installing tijsverkoyen/css-to-inline-styles (v2.3.0): Extracting archive
- Installing symfony/var-dumper (v6.4.18): Extracting archive
- Installing symfony/polyfill-uuid (v1.31.0): Extracting archive
- Installing symfony/uid (v6.4.13): Extracting archive
- Installing symfony/routing (v6.4.18): Extracting archive
- Installing symfony/polyfill-intl-idn (v1.31.0): Extracting archive
- Installing symfony/mime (v6.4.18): Extracting archive
- Installing psr/event-dispatcher (1.0.0): Extracting archive
- Installing symfony/event-dispatcher-contracts (v3.5.1): Extracting archive
- Installing symfony/event-dispatcher (v7.2.0): Extracting archive
- Installing psr/log (3.0.2): Extracting archive
- Installing egulias/email-validator (3.2.6): Extracting archive
- Installing symfony/mailer (v6.4.18): Extracting archive
- Installing symfony/error-handler (v6.4.18): Extracting archive
- Installing symfony/http-kernel (v6.4.18): Extracting archive
- Installing ramsey/collection (2.0.0): Extracting archive
- Installing brick/math (0.12.1): Extracting archive
- Installing ramsey/uuid (4.7.6): Extracting archive
- Installing psr/simple-cache (3.0.0): Extracting archive
- Installing nunomaduro/termwind (v1.17.0): Extracting archive
- Installing symfony/translation-contracts (v3.5.1): Extracting archive
- Installing symfony/translation (v6.4.13): Extracting archive
- Installing psr/clock (1.0.0): Extracting archive
- Installing carbonphp/carbon-doctrine-types (3.2.0): Extracting archive
- Installing nesbot/carbon (2.73.0): Extracting archive
- Installing monolog/monolog (2.10.0): Extracting archive
- Installing league/mime-type-detection (1.16.0): Extracting archive
- Installing league/flysystem (3.29.1): Extracting archive
- Installing league/flysystem-local (3.29.0): Extracting archive
- Installing nette/utils (v4.0.5): Extracting archive
- Installing nette/schema (v1.3.2): Extracting archive
- Installing dflydev/dot-access-data (v3.0.3): Extracting archive
- Installing league/config (v1.2.0): Extracting archive
- Installing league/commonmark (2.6.1): Extracting archive
- Installing laravel/serializable-closure (v1.3.7): Extracting archive
- Installing laravel/framework (v9.47.0): Extracting archive
- Installing rap2hpoutre/fast-excel (v5.6.0): Extracting archive
- Installing laravel/ui (v4.6.1): Extracting archive
- Installing inertiajs/inertia-laravel (v1.3.2): Extracting archive
- Installing psr/cache (3.0.0): Extracting archive
- Installing doctrine/dbal (4.2.2): Extracting archive
- Installing brick/money (0.10.0): Extracting archive
- Installing laravel/nova (4.35.6): Cloning 7db1b2d88e
Install of laravel/nova failed
- Installing spatie/laravel-permission (5.11.1): Extracting archive
72/72 [============================] 100%
In Git.php line 457:

Failed to execute git clone --no-checkout -- 'https://ghp...Z7k:[email protected]/laravel/nova.git' 'MyProject/components/nova-permission/vendor/laravel/nova' && cd 'MyProject/components/nova-perm
ission/vendor/laravel/nova' && git remote add composer -- 'https://ghp...Z7k:[email protected]/laravel/nova.git' && git fetch composer && git remote set-url origin -- 'https://github.com/laravel/nova.git' && git remote set-url composer -- 'https://github.com
/laravel/nova.git'

Cloning into 'MyProject/components/nova-permission/vendor/laravel/nova'...
remote: Repository not found.
fatal: repository 'https://github.com/laravel/nova.git/' not found


install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

Actually no page found at url https://github.com/laravel/nova !

Have I run commands in the right directories ?

Upvotes: 0

Views: 63

Answers (1)

Tiago Peres
Tiago Peres

Reputation: 15560

Make sure that you don't have something like

"laravel/nova": "^4.27.12"

If you do, change it to the specific

"laravel/nova": "4.27.12"

Upvotes: 1

Related Questions