Users authenticating with the npm login command:

ARTIFACTORY: Changes to the login behavior in NPM v9

Products
Frog_Artifactory
Content Type
User_Guide
Administration_Platform
AuthorFullName__c
Elina Floim
articleNumber
000005461
FirstPublishedDate
2022-11-17T09:35:59Z
lastModifiedDate
2025-05-15
VersionNumber
6

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