title: Properly installing SQLite for Node.js
body: <p>I follow the instructions on installing <a href="https://npmjs.org/package/sqlite3" rel="nofollow">SQLite</a> for Node.js:</p>
  
  <pre><code>apt-get install sqlite3
  apt-get install libsqlite3-dev
  npm install sqlite3
  </code></pre>
  
  <p>Still, the code</p>
  
  <pre><code>var db = new require('sqlite3').verbose().Database('database.db');
  </code></pre>
  
  <p>results in the error message:</p>
  
  <pre><code>./node: symbol lookup error: /root/together2/node_modules/sqlite3/lib/sqlite3_bindings.node: undefined symbol: _ZN2v814ObjectTemplate11SetAccessorENS_6HandleINS_6StringEEEPFNS1_INS_5ValueEEENS_5LocalIS2_EERKNS_12AccessorInfoEEPFvS7_NS6_IS4_EESA_ES5_NS_13AccessControlENS_17PropertyAttributeE
  </code></pre>
  
  <p>The system is:</p>
  
  <pre><code>cat /etc/lsb-release 
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=12.04
  DISTRIB_CODENAME=precise
  DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
  </code></pre>
  
  <p>Can anyone explain what am I missing here?</p>