title: puppeteer not working on vps but running locally
body: <p>I wrote a little puppeteer program that let me log into twitter and check a few things. Locally on mac OS Catalina, it is working but on VPS ubuntu 18.04 lts not working. And shows me a log at the start:</p>
  <pre><code>/root/retwiter/node_modules/puppeteer/.local-chromium/linux-800071/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
  </code></pre>
  <p>I have 2 running configs for browser:
  local:</p>
  <pre><code>{
      headless: false,
      defaultViewport: null,
      args: [
          '--window-size=1920,1080'
      ]
  }
  </code></pre>
  <p>vps:</p>
  <pre><code>{
      headless: true,
      defaultViewport: null,
      args: [
          '--no-sandbox',
          '--disable-setuid-sandbox'
      ]
  }
  </code></pre>