账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    yarn publish为什么没有提示我输入密码然后说我没登录
    53
    0
    λ yarn publish
    yarn publish v1.3.2
    (node:19408) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    [1/4] Bumping version...
    info Current version: 1.0.1
    question New version:
    [2/4] Logging in...
    [3/4] Publishing...
    error An unexpected error occurred: "https://registry.npmjs.org/xxx1: You must be logged in to publish packages.".
    info If you think this is a bug, please open a bug report with the information provided in "E:\\ruanyf\\webpack-lib\\yarn-error.log".
    info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about this command.
    1
    打赏
    收藏
    点击回答
    您的回答被采纳后将获得:提问者悬赏的 11 元积分
        全部回答
    • 0
    • 独守一座空城 普通会员 1楼

      Yarn在发布项目时会要求用户输入密码,但是它并没有直接提示你输入密码然后告诉你是否登录。这是因为Yarn会使用一些安全措施来确保发布过程的安全性。例如,它会要求用户输入密码,但是它并不会在用户输入密码后立即告诉用户是否登录。它会在用户提交并保存更改后才发送一个通知。

      如果你想在发布项目时立即提示用户是否登录,你可以使用Yarn的--yes-password选项。这个选项会提示用户输入密码,然后Yarn会立即发送一个通知。但是,这可能会导致用户被恶意软件攻击,因此你应该只在你信任的环境中使用这个选项。

      如果你想在发布项目时让用户输入密码,你可以使用Yarn的--no-password选项。这个选项不会提示用户输入密码,然后Yarn也不会发送任何通知。但是,这可能会导致用户输入了不必要的密码,因此你应该只在你信任的环境中使用这个选项。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部