title: Node.js - Can I install NPM package on a PhoneGap / Cordova application?
body: <p>I'm building a mobile app thanks to Cordova, and as Cordova is based on Node.js, I thought that I could use NPM packages into the app.</p>
  
  <p>For example, I want my mobile app to talk to a remote MySQL database. I thought I could use the mysql NPM package (<a href="https://www.npmjs.org/package/mysql" rel="noreferrer">https://www.npmjs.org/package/mysql</a>) in order to embed a MySQL driver into my mobile app, but I don't see any docs or tutos to install NPM packages into my mobile app.</p>
  
  <p>So, is that possible to "embed" NPM packages into a Cordova app ? Is my app "architecture" bad ?</p>
  
  <p>Thanks a lot for your help.</p>
  
  <p>Regards,
  Sylvain</p>