title: How add commands to cygwin - npm
body: <p>I use cygwin on windows 8.1 to have an Unix shell. But I cannot run commands such as npm from it.</p>
  
  <p>What should I do to do it? Add some kind of env var to cygwin? Why it doesn't use windows PATH?</p>
  
  <p>Edit:
  Actually I think that I misunderstood the problem here. It looks like npm is found by cygwin but it cannot be used. For instance I can use git from cygwin without any trouble.</p>
  
  <pre><code>$ npm
  /cygdrive/d/Logiciels installés/nodejs/npm: line 2: $'\r' : command not found
  /cygdrive/d/Logiciels installés/nodejs/npm: line 4: $'\r' : command not found
  /cygdrive/d/Logiciels installés/nodejs/npm: line 5: Syntax error around « $'in\r' »
  'cygdrive/d/Logiciels installés/nodejs/npm: line 5: `case `uname` in
  </code></pre>
  
  <p>So, it looks actually more like a npm issue.</p>