title: Serverless Framework: How to add external NPM packages?
body: <p>My situation is that I am having a bit of trouble in adding external NPM packages to my Serverless Framework project (specific package is geopoint). </p>
  
  <p>I went to the root folder of the Serverless project and ran <code>npm install geopoint --save</code>. package.json got updated with <code>dependencies": { "geopoint": "^1.0.1" }</code> and node_modules folder was created.</p>
  
  <p>My folder structure looks like this:<br>
  root-project-folder<br>
  -functions<br>
  --geospatial<br>
  ---handler.js<br>
  -node_modules<br>
  --geopoint</p>
  
  <p>In my functions/geospatial/handler.js I declared the geopoint module with:</p>
  
  <pre><code>    var geopoint = require('geopoint');
      var geopoint = require('../../geopoint');
      var geopoint = require('../../../geopoint');
  </code></pre>
  
  <p>The lambda console returns an error of:</p>
  
  <pre><code>    {
        "errorMessage": "Cannot find module '../../geopoint'",
        "errorType": "Error",
        "stackTrace": []
      }
  </code></pre>
  
  <p>How can I properly add external NPM modules to a Serverless Framework project?</p>