Node.js
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:
//registry.npmjs.org/:_authToken=npm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Run npm whoami to verify which account is currently in use. This command will display the username of the active NPM account.