Skip to content

[BUG] Error 400: npm access 2fa-required  #650

@cunneen

Description

@cunneen

What / Why

2fa is disabled on my account and on the package (it was previously enabled on both).

Now, calls to npm access 2fa-required fail, which breaks my preferred publishing tool (np).

> npm access 2fa-required <my-package-name>
npm ERR! code E400
npm ERR! 400 Bad Request - POST https://registry.npmjs.org/-/package/<my-package-name>/access

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/<myusername>/.npm/_logs/2020-01-02T09_06_21_597Z-debug.log

> npm --version
6.13.4

Expected result

I expected npm access 2fa-required <my-package-name> to exit silently with a zero or non-zero exit code (depending on if 2fa is required or not)

When

  • Today (2 Jan 2020)

Where

  • CLI on my machine

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions