title: I'm trying to auto login in npm using bash script, but I don't know how ti input username and password when requested. is it possible?
body: <p>I'm writing a bash script to install nodejs and setup a private npm registry, everything is ok until i get here:</p>
  
  <h1>setting npm registry:</h1>
  
  <p>npm set registry <a href="http://privateip:4873" rel="nofollow">http://privateip:4873</a></p>
  
  <p>npm login --registry=<a href="http://privateip:4873/" rel="nofollow">http://privateip:4873/</a></p>
  
  <h1>here I'm asked for user and password and I don't know how to input, is it possible in bash scripting?</h1>
  
  <p>thanks </p>