npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Attempting to publish result in a "You must be logged in to publish packages." error

Hi there,

I am trying to publish a new version of a package to NPM, but for some reason I get a 401 with message You must be logged in to publish packages. : waveplayer all of a sudden. As far as I know I haven’t changed anything about my NPM setup, other than updating to a new minor version this morning. I do have 2FA enabled. Any help or advice would be greatly appreciated.



I was able to figure it out myself. For some reason my access token was deleted from my NPM account… Creating a new one and updating my .npmrc did the trick.