在 Gitlab CI 上安装 Laravel Nova

Install Laravel Nova on Gitlab CI

我正在尝试使用与 Gitlab 的持续集成 CI。

我安装了一个新的 Laravel 8,在 composer.json

中手动添加 "laravel/nova": "~3.0",

docs所述,我

composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_PASSWORD}

然后

➜ composer update                      
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires laravel/nova, it could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

我回应了 ${NOVA_USERNAME} ${NOVA_PASSWORD} 并仔细检查了两个字段是否正常。 NOVA_USERNAME 包含注册的电子邮件,NOVA_PASSWORD 包含在此处找到的 API 令牌:https://nova.laravel.com/settings/password

有人知道我哪里失败了吗?

我认为这是因为您没有将 Nova 存储库添加到您的 composer.json 文件中。您提供的文档 link 中提到了它。

"repositories": [
    {
        "type": "composer",
        "url": "https://nova.laravel.com"
    }
],