首页 > 解决方案 > 在 Gitlab CI 上安装 Laravel Nova

问题描述

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

"laravel/nova": "~3.0",我安装了一个新的Laravel 8,手动添加 composer.json

文档中所述,我愿意

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

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

标签: phplaravelcontinuous-integrationgitlab-cilaravel-nova

解决方案


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

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

推荐阅读