title: Error when installing log.io using npm
body: <p>I am trying to install log.io following the instruction from <a href="https://github.com/NarrativeScience/Log.io" rel="nofollow">https://github.com/NarrativeScience/Log.io</a>. It suggests using npm install command. </p>
  
  <pre><code>npm install -g log.io
  </code></pre>
  
  <p>The error I am getting is like below. And I tried on both Mac OS and Ubuntu, both no luck. Can anyone help me?</p>
  
  <pre><code>&gt; contextify@0.1.13 install /usr/local/lib/node_modules/log.io/node_modules/jquery/node_modules/contextify
  &gt; node-gyp rebuild
  
  npm http GET https://registry.npmjs.org/cssstyle
  npm http GET https://registry.npmjs.org/cssom
  npm http 304 https://registry.npmjs.org/cssom
  npm http 304 https://registry.npmjs.org/cssstyle
  gyp: Call to 'node -e "require('nan')"' returned exit status 1. 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-32-generic
  gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
  gyp ERR! cwd /usr/local/lib/node_modules/log.io/node_modules/jquery/node_modules/contextify
  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! Error: ENOENT, chown '/usr/local/lib/node_modules/log.io/node_modules/jquery/node_modules/jsdom/node_modules/request/README.md'
  npm ERR! If you need help, you may report this log at:
  npm ERR!     &lt;http://github.com/isaacs/npm/issues&gt;
  npm ERR! or email it to:
  npm ERR!     &lt;npm-@googlegroups.com&gt;
  ...
  </code></pre>