title: ERROR: Cannot find module '../node-v11-darwin-x64/node_sqlite3.node'
body: <p>There is a production version of Ghost blogging platform with content and style changes on our server. I downloaded the blog's app folder to my local machine. The instructions seem straight forward.</p>
  
  Quickstart:
  
  <ol>
  <li><code>npm install -g grunt-cli</code></li>
  <li><code>npm install</code></li>
  <li><code>grunt init</code> (and <code>grunt prod</code> if you want to run Ghost in production mode)</li>
  <li><code>npm start</code></li>
  </ol>
  
  <p>But when I run <code>grunt init</code> I get the following:</p>
  
  <pre><code>Running "shell:bower" (shell) task
  
  module.js:340
      throw err;
        ^
  Error: Cannot find module 'q'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.Module._load (module.js:280:25)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.&lt;anonymous&gt; (/Users/steelcollar/workspace/blog/node_modules/.bin/bower:6:9)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Function.Module.runMain (module.js:497:10)
  Warning: Command failed:
  module.js:340
      throw err;
        ^
  Error: Cannot find module 'q'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.Module._load (module.js:280:25)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.&lt;anonymous&gt; (/Users/steelcollar/workspace/blog/node_modules/.bin/bower:6:9)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Function.Module.runMain (module.js:497:10)
  Use --force to continue.
  </code></pre>
  
  <p>Eventually, running <code>npm start</code> leads to:</p>
  
  <p><code>ERROR: Cannot find module '../node_modules/sqlite3/lib/binding/node-v11-darwin-x64/node_sqlite3.node'</code></p>
  
  <p>I have bower and grunt installed. I haven't changed the code at all. Where could the problem be?</p>
  
  <p><em>Update:</em></p>
  
  <p>According to the folder structure I downloaded, the path is <code>../node-v11-linux-x64/node_sqlite3.node'</code> instead of <code>../node-v11-darwin-x64/node_sqlite3.node'</code>.</p>
  
  <p>I am receiving this error if I change the folder name from <code>darwin</code> to <code>linux</code> though:</p>
  
  <pre><code>ERROR: dlopen(../node_modules/sqlite3/lib/binding/node-v11-darwin-x64/node_sqlite3.node, 1): no suitable image found.  Did find:
  ../node_modules/sqlite3/lib/binding/node-v11-darwin-x64/node_sqlite3.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
  </code></pre>