title: Need help setting up a google cloud function with an NPM Module
body: <p>I've been trying to setup my first google cloud function containing an NPM Module for an two hours now but can't get it to work. To avoid complexity I have even defaulted to an article: It always returns the default Object:</p>
  <pre><code>{
        &quot;title&quot;: &quot;&quot;,
        &quot;content&quot;: &quot;&quot;,
        &quot;html&quot;: &quot;&quot;,
        &quot;dom&quot;: &quot;&quot;,
        &quot;meta&quot;: &quot;&quot;
  };
  </code></pre>
  <p>Can any of you help me out here?</p>
  <p>index.js</p>
  <pre><code>const functions = require('@google-cloud/functions-framework');
  const read = require('node-readability');
  
  functions.http('readArticle', (req, res) =&gt; {
    try {
      // declare response structure
      let result = {
        &quot;title&quot;: &quot;&quot;,
        &quot;content&quot;: &quot;&quot;,
        &quot;html&quot;: &quot;&quot;,
        &quot;dom&quot;: &quot;&quot;,
        &quot;meta&quot;: &quot;&quot;
      };
  
      // extract article and add to response structure
      read(`https://burklandassociates.com/2021/08/24/is-remote-first-the-future-of-work-for-startups/`, function(err, article, meta) {
          result.title = article.title;
          result.content = article.content;
          result.html = article.html;
          result.dom = article.document;
          result.meta = meta;
          article.close();
      });
  
      // Send result
      res.send(result);
    } catch(e) {
      res.send(e);
    }
  });
  </code></pre>
  <p>package.json</p>
  <pre><code>{
    &quot;dependencies&quot;: {
      &quot;@google-cloud/functions-framework&quot;: &quot;^2.1.0&quot;,
      &quot;node-readability&quot;: &quot;^3.0.0&quot;
    }
  }
  </code></pre>