title: Node script executable not working on Mac : env: node\r: No such file or directory
body: <p>I have created my node script executable to execute some tasks grunt. On Windows, my node script works fine. But on Mac OS X (Yosemite), it's not working. </p>
  
  <p>My node script has been published on Windows. </p>
  
  <p>My node script is installed via npm command :</p>
  
  <pre><code>npm install -g task-app
  </code></pre>
  
  <p>My node script have this first line : </p>
  
  <pre><code>#! /usr/bin/env node
  </code></pre>
  
  <p>I tried many some solutions to solve my problem but I'm still stuck. </p>
  
  <p>Here's these solutions that I used :</p>
  
  <ol>
  <li>uninstall and reinstall Node.js</li>
  <li>execute this command to
  create a link for node : sudo ln -s /usr/bin/nodejs
  /usr/local/bin/node </li>
  <li>set my path with this command : export PATH=$PATH:/usr/local/bin/node</li>
  </ol>
  
  <p>Do you have other solutions to propose ?</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>the beginning of my script :</p>
  
  <pre><code>#! /usr/bin/env node
  
  var grunt = require('grunt');
  
  //Get parameters from command line
  var args = process.argv.splice(2);
  
  [...]
  </code></pre>