The problem

Error: NPM publish

403:Are you logged in as the correct user

Checking the login question repeatedly, I thought I had logged in incorrectly

why

If this error is reported at release time, the name you registered in package.json is already the same name, so you need to change it.

Before we release a package, it is better to search with the registered name, if it is already available, then we need to change it.

For example, the name in my package.json is rain-ui, but I found the same one in the official website of NPM.

To solve

Change the name in package.json. It is not available on NPM website

Change the name