I have a project specific npmrc which I added to the root of my project with the following settings
registry=<internal registry>
_auth = <auth token>
email = <email id>
I then run
npm publish
but I still get the following error.
+ npm publish
npm ERR! need auth auth and email required for publishing
npm ERR! need auth You need to authorize this machine using `npm adduser`
I am not sure why this is happening. My guess is that it isn't reading my project specific npmrc.