gpt4 book ai didi

npm - 如何发布带有双因素身份验证错误的 npm 包?

转载 作者:行者123 更新时间:2023-12-05 06:30:44 25 4
gpt4 key购买 nike

我刚刚创建了一个名为 ionic3-star-rating 的包。当我运行命令 npm publish 时,它 rejetcs 并显示错误:“此包需要发布者启用 TFA 并提供 OTP 才能发布”。但我还没有启用 TFA(在运行 npm profile get 时,它显示 two-factor auth = disabled)。当我运行命令 npm profile disable-2fa 时,它显示消息 “未启用双因素身份验证”

为什么会这样?我不得不创建另一个包来发布我的最新更改。

最佳答案

您似乎无意中在 ionic3-star-rating 上启用了按包 TFA。

在此处了解有关每个包裹 TFA 的更多信息:How to require two-factor authentication for package publishing and settings modification

如果遇到这种情况please configure 2FA to edit this package

您需要一个可以生成一次性密码 (OTP) 的应用程序。例如,AuthyGoogle Authenticator 可以生成一次性密码 (OTP)。在此处了解更多信息:How to Use Two-Factor Authentication

关于npm - 如何发布带有双因素身份验证错误的 npm 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52103353/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com