maandag 15 mei 2023

Add authentication token to .npmrc

When you need to authenticate to a Nexus repository, than you must add an authentication token to .npmrc
Do it this way:
npm login --auth-type=legacy

However, if you have several repositories, do it this way
Doe dat als volgt:
npm login --scope=@scopeprefix --auth-type=legacy

Login, and the authentication token will be added to your .npmrc which is located in your user directory.

Also do:
npm adduser --auth-type=legacy

Geen opmerkingen:

Een reactie posten