[英]Getting 403 when trying to push packages to nuget.org
I've been following this document on How to Publish a Package to nuget.org gallery, and I keep getting 403 forbidden.我一直在关注这篇关于如何将 Package 发布到 nuget.org画廊的文档,并且一直被禁止 403。
I've done the following steps:我已经完成了以下步骤:
Browsed to my account in nuget.org.在 nuget.org 中浏览到我的帐户。
Clicked on my name -> API Keys点击我的名字 -> API Keys
I already have a.nupkg file, so now I try:我已经有一个 .nupkg 文件,所以现在我尝试:
$ nuget.exe push .\Test.1.2.3.nupkg -Source https://api.nuget.org/v3/index.json -Apikey <apikey>
And I keep getting:我不断得到:
Pushing Test.1.2.3.nupkg to 'https://www.nuget.org/api/v2/package'...
PUT https://www.nuget.org/api/v2/package/
Forbidden https://www.nuget.org/api/v2/package/ 2238ms
Response status code does not indicate success: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.).
Why is that??这是为什么??
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.