Getting 404 when attempting to publish new package to NPM
Solution 1:
You need to have registered "supericium" (npm adduser
) as a username at the registry and be logged in (npm login
) to publish under that scope.
- https://docs.npmjs.com/getting-started/publishing-npm-packages
- https://docs.npmjs.com/getting-started/scoped-packages
Solution 2:
It's solved by npm login
in my case, the error message is misleading
Solution 3:
Came across this same error, and my issue was that the package was somehow set to "Read" access only. So I have to go to the NPM and update the package to "Read/Write" access:
1.
2.
Solution 4:
You could also get this error when you change your password to NPM but you do not logout/login via your CLI. Using npm logout
and then npm login
worked for me.