title: Bcrypt fails to install
body: <p>I am having problems installing an npm package called "bcrypt" on my Ubuntu system.</p>
  
  <p><strong>This is what I did:</strong></p>
  
  <blockquote>
    <p>sudo apt-get update<br>
    sudo apt-get install nodejs<br>
    sudo apt-get install npm<br>
    sudo npm install bcrypt<br></p>
  </blockquote>
  
  <p><strong>This is what I got:</strong></p>
  
  <p>when typing: sudo npm install bcrypt</p>
  
  <pre><code>npm http GET https://registry.npmjs.org/bcrypt
  npm http 304 https://registry.npmjs.org/bcrypt
  npm http GET https://registry.npmjs.org/bindings/1.0.0
  npm http GET https://registry.npmjs.org/nan/1.3.0
  npm http 304 https://registry.npmjs.org/nan/1.3.0
  npm http 304 https://registry.npmjs.org/bindings/1.0.0
  
  &gt; bcrypt@0.8.0 install /home/gatsu/salongapp/salongapp/node_modules/bcrypt
  &gt; node-gyp rebuild
  
  /bin/sh: 1: node: not found
  gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
  gyp ERR! configure error 
  gyp ERR! stack Error: `gyp` failed with exit code: 1
  gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
  gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
  gyp ERR! System Linux 3.13.0-35-generic
  gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
  gyp ERR! cwd /home/gatsu/salongapp/salongapp/node_modules/bcrypt
  gyp ERR! node -v v0.10.25
  gyp ERR! node-gyp -v v0.10.10
  gyp ERR! not ok 
  npm WARN This failure might be due to the use of legacy binary "node"
  npm WARN For further explanations, please read
  /usr/share/doc/nodejs/README.Debian
  
  npm ERR! weird error 1
  npm ERR! not ok code 0
  </code></pre>
  
  <p>The package does <strong>not</strong> get placed in this folder:</p>
  
  <blockquote>
    <p>/home/gatsu/salongapp/salongapp/node_modules/bcrypt</p>
  </blockquote>
  
  <p>Any thoughts?</p>