title: How to read npm ENOENT errors
body: <p>I've got 2 ENOENT errors. I know "ENOENT" means "Error NO ENTrance", but what exactly is missing in these two ENOENTs? What do these error messages mean?  I would like to decipher them to be able to debug the problems.</p>
  
  <pre><code>npm ERR! Error: ENOENT, lstat '/home/ubuntu/.npm/iconv-lite/0.2.11/package/encodings/table/gbk.js'
  npm ERR! If you need help, you may report this *entire* log,
  npm ERR! including the npm and node versions, at:
  npm ERR!     &lt;http://github.com/npm/npm/issues&gt;
  
  npm ERR! System Linux 3.2.0-54-virtual
  npm ERR! command "/home/ubuntu/local/bin/node" "/home/ubuntu/local/bin/npm" "install"
  npm ERR! cwd /home/ubuntu/app_e
  npm ERR! node -v v0.10.26
  npm ERR! npm -v 1.4.3
  npm ERR! path /home/ubuntu/.npm/iconv-lite/0.2.11/package/encodings/table/gbk.js
  npm ERR! fstream_path /home/ubuntu/.npm/iconv-lite/0.2.11/package/encodings/table/gbk.js
  npm ERR! fstream_type File
  npm ERR! fstream_class FileWriter
  npm ERR! code ENOENT
  npm ERR! errno 34
  npm ERR! fstream_stack /home/ubuntu/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
  npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>npm ERR! Error: ENOENT, chmod '/home/ubuntu/app_f/node_modules/grunt/lib/grunt/util.js'
  npm ERR! If you need help, you may report this *entire* log,
  npm ERR! including the npm and node versions, at:
  npm ERR!     &lt;http://github.com/npm/npm/issues&gt;
  
  npm ERR! System Linux 3.2.0-54-virtual
  npm ERR! command "/home/ubuntu/local/bin/node" "/home/ubuntu/local/bin/npm" "install"
  npm ERR! cwd /home/ubuntu/app_f
  npm ERR! node -v v0.10.26
  npm ERR! npm -v 1.4.3
  npm ERR! path /home/ubuntu/app_f/node_modules/grunt/lib/grunt/util.js
  npm ERR! fstream_path /home/ubuntu/app_f/node_modules/grunt/lib/grunt/util.js
  npm ERR! fstream_type File
  npm ERR! fstream_class FileWriter
  npm ERR! fstream_finish_call chmod
  npm ERR! code ENOENT
  npm ERR! errno 34
  npm ERR! fstream_stack /home/ubuntu/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
  npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
  npm http GET https://registry.npmjs.org/graceful-fs
  </code></pre>
  
  <p>One seems to have an "lstat" problem on gbk.js, the other an "chmod" problem on util.js, but what about the commands "node", "npm" and "install", "cwd", "fstream", and Object.oncomplete? </p>
  
  <p>Here is <a href="https://gist.github.com/randwa1k/9210931#file-writer-js-for-enoent-debug-L40">writer.js:284</a>.
  Here is <a href="https://gist.github.com/randwa1k/9210931#file-writer-js-for-enoent-debug-L61">writer.js:305</a>.</p>