title: Node.js no such file or directory
body: <p>I'm trying to install node/npm on a shared server for some testing. As its shared, I'm trying to install it in my own folder, ~/usr/bin</p>
  
  <p>I've extracted the tar, and can see node/npm...</p>
  
  <pre><code>ls /kunden/homepages/myId/htdocs/usr/bin/nodejs/bin
  node npm
  </code></pre>
  
  <p>If I echo $PATH (as I have modified .bashrc) I see the folder...</p>
  
  <pre><code>/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/local/msql/bin:/usr/games:.:/kunden/homepages/myId/htdocs/usr/bin/nodejs/bin
  </code></pre>
  
  <p>Now if I call npm or node, it 'finds' the node file, but then says </p>
  
  <pre><code>line 2: /kunden/homepages/myId/htdocs/usr/bin/nodejs/bin/node: No such file or directory
  </code></pre>
  
  <p>even if I put in the full path it says this, so it appears npm/node is looking for another file it can't find ?</p>
  
  <p>I can see the file it says...</p>
  
  <pre><code>file /kunden/homepages/myId/htdocs/usr/bin/nodejs/bin/node 
  /kunden/homepages/myId/htdocs/usr/bin/nodejs/bin/node: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
  </code></pre>
  
  <p>So I know in my path it can see node/npm fine. Is there some other file its looking for that I've missed ?</p>
  
  <p>edit: If I run an strace, the debug output is...</p>
  
  <pre><code>execve("/kunden/homepages/myId/htdocs/usr/bin/nodejs/bin/node", ["/kunden/homepages/myId/htdocs/usr/bin/nodejs/bin/node"], [/* 36 vars */]) = -1 ENOENT (No such file or directory)
  dup(2)                                  = 3
  fcntl64(3, F_GETFL)                     = 0x8002 (flags     O_RDWR|O_LARGEFILE)
  fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
  mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x55575000
  _llseek(3, 0, 0xffc0b568, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
   write(3, "strace: exec: No such file or directory\n", 40strace: exec: No such file or directory
  ) = 40
  close(3)                                = 0
  </code></pre>