title: Can I deploy an entire node_modules folder as a lambda layer?
body: <p>My serverless project has a single <code>node_modules</code> folder shared by all functions. I would like to deploy this entire folder as a layer. I've tried putting this in <code>serverless.yml</code>:</p>
  <pre><code>layers:
    dependencies:
      path: node_modules
  </code></pre>
  <p>This doesn't work because I end up with two empty deployment packages (one for the functions and the other for the dependencies).</p>
  <p>What would be the best way to do this?</p>