title: npm publish to nexus
body: <p>I'm trying to publish an npm package to our nexus private registry using this command :</p>
  
  <p><code>npm publish --registry http://localhost:8081/nexus/content/repositories/npmjs</code></p>
  
  <p>but I get this error :</p>
  
  <pre><code>npm ERR! path C:\Users\USER~1.MAJ\AppData\Local\Temp\npm-13292-e2329f38\tmp\fromDir-e7e42b8d\package.tgz
  npm ERR! code EPERM
  npm ERR! errno -4048
  npm ERR! syscall unlink
  npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\USER~1.MAJ\AppData\Local\Temp\npm-13292-e2329f38\tmp\fromDir-e7e42b8d\package.tgz'
  ...
  npm ERR! Please try running this command again as root/Administrator.
  </code></pre>
  
  <p>and this is my npm configuration (.npmrc) :</p>
  
  <pre><code> registry: 'http://localhost:8081/nexus/content/repositories/npmjs/',
    _auth: 'YWRtaW46YWRtaW4xMjM=',
    'always-auth': true 
  </code></pre>
  
  <p>How can I solve this ?</p>
  
  <h1>Edit :</h1>
  
  <p><code>npm -v</code>: 5.3.0</p>
  
  <p><code>node -v</code>: v8.8.0</p>
  
  <p><code>npm config get registry</code>: <a href="http://localhost:8081/nexus/content/repositories/npmjs" rel="nofollow noreferrer">http://localhost:8081/nexus/content/repositories/npmjs</a></p>