Recently, NPM introduced a breaking change in which the legacy authentication types have been consolidated into “legacy”, making the auth-type default to “web”.
More information can be found on NPMs official release notes and this JFrog Jira ticket.
Artifactory version 7.52 has introduced the support for the Web login method. Artifactory should be upgraded to allow npm login using the Web login mechanism.