title: Ionic > Cannot find module 'ansi'
body: <p>Building an <code>Ionic</code> project on a mac, throws the following error: <code>Cannot find module 'ansi'</code></p>
  
  <p><strong>Command:</strong> <code>ionic build android</code></p>
  
  <p><strong>Stacktrace</strong></p>
  
  <pre><code>module.js:327
      throw err;
      ^
  
  Error: Cannot find module 'ansi'
      at Function.Module._resolveFilename (module.js:325:15)
      at Function.Module._load (module.js:276:25)
      at Module.require (module.js:353:17)
      at require (internal/module.js:12:17)
      at Object.&lt;anonymous&gt; (/Users/bob/myapp/platforms/android/cordova/node_modules/cordova-common/src/CordovaLogger.js:20:12)
      at Module._compile (module.js:409:26)
      at Object.Module._extensions..js (module.js:416:10)
      at Module.load (module.js:343:32)
      at Function.Module._load (module.js:300:12)
      at Module.require (module.js:353:17)
  Error: /Users/bob/myapp/platforms/android/cordova/build: Command failed with exit code 1
  </code></pre>
  
  <p><strong>N.B.</strong> Simply installing the missing module doesn't work (i.e. <code>npm install ansi</code>), as it complains about other missing modules...</p>