title: How can I make local changes to node.js library?
body: <p>I installed some node.js package via <code>npm</code> (specifically, <code>sqlite3</code>). Now I want to add some logging to it's C++ code. I need package to be rebuilt. I tried 'npm edit', but it finishes with errors after 'wq':</p>
  
  <pre><code>npm ERR! weird error 1
  npm ERR! not ok code 0
  </code></pre>
  
  <p>But I don't want use <code>vi</code> or another terminal editor for this. After modifications, I do <code>npm rebuild sqlite3</code>. But it does't rebuild anything! How can I modify packages I have locally?</p>
  
  <pre><code>[sqlite3]: Sweet: "node_sqlite3.node" is valid, node-sqlite3 is now installed!
  </code></pre>