The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
npm publish failed
I just created a package called
When I run the command npm publish, it rejetcs with an error: “This package requires that publishers enable TFA and provide an OTP to publish”.
But I haven’t enabled TFA (on running npm profile get, it shows two-factor auth = disabled).
when I run the command npm profile disable-2fa, it shows the message “Two factor authentication not enabled”.
Why does this happen? I had to create another package to publish my latest changes.