npm / npme-installer

npm Enterprise installer
https://www.npmjs.com/enterprise
Other
35 stars 21 forks source link

Deploy token "You need to authorize this machine" error #164

Open tvb opened 6 years ago

tvb commented 6 years ago

I cannot seem to get NPMe to work with AWS CodeBuild or locally. I keep getting:

npm ERR! code ENEEDAUTH
npm ERR! need auth auth required for publishing
npm ERR! need auth You need to authorize this machine using `npm adduser`

To what AUTH settings do I need to configure my NPMe environment? I've set it to GH Auth now but from what I understand that shouldn't matter with a deploy token.

My .npmrc looks like:

@myscope:registry=http://mydomain.com:8080/
//mydomain.com.com:8080/:_authToken=deploy_my_random_key

And the command I try to run:

npm publish --scope=@myscope --registry=http://mydomian.com:8080/