"npm dist-tag add" fails with 401 for PUT


(Andrey Popp) #1

It also prints an notice that all tokens have been invalidated. But I’ve run npm login before and npm whoami returns my username.


(Andrey Popp) #2

I had to disable 2FA to do npm dist-tag add, otherwise it doesn’t allow me to proceed.


(system) #3

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.


(Kat Marchán) #4

FYI: you need to use --otp <otp code> with npm dist-tag