php - 在 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
有人知道我在哪里失败吗?
解决方案
我相信这是因为您没有将 Nova 存储库添加到您的composer.json
文件中。您提供的文档链接中提到了它。
"repositories": [
{
"type": "composer",
"url": "https://nova.laravel.com"
}
],
推荐阅读
- javascript - React - 如果更新 div/span 的值,如何触发动画?
- php - 在我按下刷新符号之前,我的购物车 Div 不会刷新
- java - Lambda 合并内部对象列表
- angular - 在角度 8 的一个请求中发送图像和 json 数据时出错
- django - 当新用户在 Django 应用程序中注册时向管理员发送电子邮件
- c# - 如何在 azure bot(网络聊天)中将置信度分数阈值设置为 50%?
- opengl - glVertexAttribPointer 提高 GL_INVALID_OPERATION 版本 330
- javascript - 如何从 typescript 中的 webpack 配置获取对象(使用 esnext 语法)
- tensorflow - Tensorflow 2.0 Custom loss function with multiple inputs
- apache - 2 Apache / LAMP 在同一台机器上