<t>I had an issue where I couldn't connect, even though I had the same .npmrc as other repos on the same machine.<br/>
Running vsts-npm-auth -config .npmrc just exited, presumably happy with the cached credentials.<br/>
<br/>
However, the credentials it had seemed to be bad. The solution was to force refreshing the token:<br/>
vsts-npm-auth -config .npmrc -force</t>