After developing an npm package using typescript and node18, I uploaded it to Code Artifact and successfully connected npm to the private registry.
However, while working on a new project, I encountered an error every time I attempted to commit:
npm ERR! code E401 npm ERR! Unable to authenticate, your authentication token appears to be invalid. npm ERR! To fix this issue, please try logging in again with: npm ERR! npm login
When I tried npm login
, I received another error:
npm ERR! code ENYI npm ERR! Web login not supported
What steps should I take to reset npm to its default registry?