我已经尝试了两天来更新Nova
将composer.json文件正确设置为更新过程似乎可以正常运行的位置之后,正确地出现了身份验证错误。
打包操作:1个安装,0个更新,0个删除
安装laravel / nova(v2.0.11):下载(正在连接...)无法从dist下载laravel / nova:无效的凭据 'https://nova.laravel.com/dist/laravel/nova/laravel-nova-blahblahblah-zip-blah.zip',正在终止。
我正在使用用来成功登录nova.laravel.com的电子邮件和密码。我已经重新测试并确认它是正确的。
在更新过程中,最初的作曲者更新过程会以交互方式询问我的用户名和密码-这也会返回无效的凭据。
接下来我尝试将这些凭据添加到我的auth.json文件中
{
"http-basic": {
"nova.laravel.com": {
"username": "myname@mydomain.com",
"password": "mypassword"
}
},
"github-oauth": {
"github.com": "mykey"
}
}
现在,它不再要求我提供凭据,而是返回“ https://nova.laravel.com/”的无效凭据。...
我还尝试使用许可证密钥代替密码。
最初,我试图从2.05
更新为2.1.0
,想知道是否必须使用许可证密钥将其保留在2.1.0
以下,然后才尝试更新为2.0.11
-但是有同样的问题。
非常感谢您帮助摆脱Laravel Nova更新。
我的composer.json
文件
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"ext-json": "*",
"fideloper/proxy": "^4.0",
"intervention/image": "^2.4",
"laravel/cashier": "^9.3",
"laravel/framework": "5.8.*",
"laravel/nexmo-notification-channel": "^2.0",
"laravel/nova": "~2.0",
"laravel/tinker": "^1.0",
"laravelcollective/html": "^5.5",
"pusher/pusher-php-server": "~4.0",
"stechstudio/laravel-php-cs-fixer": "^1.2",
"willvincent/laravel-rateable": "^1.07"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.2",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^7.5",
"beyondcode/laravel-dump-server": "^1.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
],
"post-update-cmd": [
"@php artisan nova:publish"
]
},
"repositories": [
{
"type": "composer",
"url": "https://nova.laravel.com"
}
],
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
答案 0 :(得分:0)
我的工作设置与您相似,我将粘贴相关部分,以便您可以根据需要按字符进行查看。
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
// ...
"laravel/nova": "~2.0",
// ...
},
// ...
"repositories": [
{
"type": "composer",
"url": "https://nova.laravel.com"
}
],
}
{
"http-basic": {
"nova.laravel.com": {
"username": "my@email.com",
"password": "my-password"
}
}
}
请记住,密码区分大小写。
您的许可证应该不会有任何麻烦,它将涵盖主要发行版“系列”,所有第一轮更新都在“猎户座”系列下。我认为这将持续到Laravel 6发行。
作为解决方法,您也可以update your Nova manually。