title: MAC - NPM - VSTS - inserting a registry AND token into global npmrc file
body: <p>I need to add a global registry to my computer for a project I am working on. It cannot reside locally in the project - I know this works, but for the sake of this project I can't keep it there. </p>
  
  <p>I have tried npm config set registry... but I am working through VSTS, and it provides an already generated token.  When I attempted it, after setting it, entering username/pw/email... it returned:  </p>
  
  <blockquote>
    <p>Registry returned 404 for PUT on undefined npm ERR!</p>
  </blockquote>
  
  <p>There are options for windows only: </p>
  
  <blockquote>
    <p>Recommended (for Windows users):Install and run the auth helper</p>
    
    <p>npm install -g vsts-npm-auth --registry <a href="https://registry.npmjs.com" rel="nofollow noreferrer">https://registry.npmjs.com</a>
    --always-auth false</p>
    
    <p>vsts-npm-auth -config .npmrc</p>
  </blockquote>
  
  <p>But the alternative is to add it manually.  It gives me a token, and I just need to somehow add this globally... and I have found zero online that has helped. </p>
  
  <p>Just searched and found this... irony? 
  <a href="https://i.stack.imgur.com/bxugs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bxugs.png" alt="enter image description here"></a></p>
  
  <p>Any ideas?</p>