Due to the change, and as a workaround, it is required to add a flag when performing the npm login against Artifactory. NPM clients running on versions earlier than 9, will use the same authentication command as previously:
$ npm login
Users working with npm version 9 will need to add the --auth-type=legacy flag in order to perform the login, set the authentication type to “legacy”:
$ npm login --auth-type=legacy
Attempts to run the npm login without the flag will result in the following error:
npm ERR! code ENYI npm ERR! Web login not supported
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-11-16T11_59_45_230Z-debug-0.log