Error AtlasError Documentation and Resolution

npm login failed with password_sha and pbkdf2 mismatch

may not mix password_sha and pbkdf2

npm login can fail when stored npm credentials and the account password format are out of sync, resulting in the password_sha and pbkdf2 mismatch message.

may not mix password_sha and pbkdf2authentication
may not mix password_sha and pbkdf2
  • Stored npm login credentials are stale or inconsistent with the current account password state.
  • Local npmrc authentication fields conflict with current registry login expectations.
  • The npm account password metadata has not been refreshed for the local client.
  1. Log in to npm on the website and confirm the account email is correct.
  2. Change the npm account password, even if reusing the same value.
  3. Clear registry login fields from ~/.npmrc and run npm login again.
npm Docs: Common errors
npm login may not mix password_sha and pbkdf2: causes and fixes | Error Atlas