Hendrik Lammers

Working with multiple npm accounts

To use a different NPM account for a certain project, you can create an .npmrc file within your project repository containing the appropriate authentication token.

The format of the .npmrc file should be:


Run npm whoami to verify which account is currently in use. This command will display the username of the active NPM account.