title: Error thrown with bundling Puppeteer for Chrome Extension
body: <p>I'm currently trying to follow the <a href="https://github.com/puppeteer/puppeteer/tree/6522e4f524bdbc1f1b9d040772acf862517ed507/utils/browser" rel="nofollow noreferrer">instructions</a> to bundle puppeteer for integration with my Chrome Extension project where I'm going to be web scraping a page for locations and displaying it on a map using leaflet. However, I keep running into trouble with the set up process. Currently I'm stuck on step 2 and 3 of the process. When running <code>npm install</code> in the <code>\puppeteer</code> folder created by the <code>git clone https://github.com/puppeteer/puppeteer &amp;&amp; cd puppeteer</code> command it returns.</p>
  <pre><code>Puppeteer: Compiling TypeScript...
  Error running TypeScript Error: Command failed: npm run tsc
  'rm' is not recognized as an internal or external command,
  operable program or batch file.
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! puppeteer@5.2.1-post clean-lib: `rm -rf lib`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the puppeteer@5.2.1-post clean-lib script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\username\AppData\Roaming\npm-cache\_logs\2020-08-31T21_57_06_630Z-debug.log
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! puppeteer@5.2.1-post tsc: `npm run clean-lib &amp;&amp; tsc --version &amp;&amp; npm run tsc-cjs &amp;&amp; npm run tsc-esm`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the puppeteer@5.2.1-post tsc script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\username\AppData\Roaming\npm-cache\_logs\2020-08-31T21_57_06_646Z-debug.log
  
  at ChildProcess.exithandler (child_process.js:303:12)
  at ChildProcess.emit (events.js:315:20)
  at maybeClose (internal/child_process.js:1021:16)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {
    killed: false,
    code: 1,
    signal: null,
    cmd: 'npm run tsc',
    stdout: '\n' +
  '&gt; puppeteer@5.2.1-post tsc C:\\Users\\username\\node_modules\\puppeteer\n' +
  '&gt; npm run clean-lib &amp;&amp; tsc --version &amp;&amp; npm run tsc-cjs &amp;&amp; npm run tsc-esm\n' +
  '\n' +
  '\n' +
  '&gt; puppeteer@5.2.1-post clean-lib C:\\Users\\username\\node_modules\\puppeteer\n' +
  '&gt; rm -rf lib\n' +
  '\n',
    stderr: &quot;'rm' is not recognized as an internal or external command,\r\n&quot; +
      'operable program or batch file.\r\n' +
      'npm ERR! code ELIFECYCLE\n' +
      'npm ERR! errno 1\n' +
      'npm ERR! puppeteer@5.2.1-post clean-lib: `rm -rf lib`\n' +
      'npm ERR! Exit status 1\n' +
      'npm ERR! \n' +
      'npm ERR! Failed at the puppeteer@5.2.1-post clean-lib script.\n' +
      'npm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n' +
      '\n' +
      'npm ERR! A complete log of this run can be found in:\n' +
      'npm ERR!     C:\\Users\\username\\AppData\\Roaming\\npm-cache\\_logs\\2020-08-31T21_57_06_630debug.log\n' +
  'npm ERR! code ELIFECYCLE\n' +
  'npm ERR! errno 1\n' +
  'npm ERR! puppeteer@5.2.1-post tsc: `npm run clean-lib &amp;&amp; tsc --version &amp;&amp; npm run tsc-cjs &amp;&amp; npm run tsc-esm`\n' +
  'npm ERR! Exit status 1\n' +
  'npm ERR! \n' +
  'npm ERR! Failed at the puppeteer@5.2.1-post tsc script.\n' +
  'npm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n' +
  '\n' +
  'npm ERR! A complete log of this run can be found in:\n' +
  'npm ERR!     C:\\Users\\username\\AppData\\Roaming\\npm-cache\\_logs\\2020-08-31T21_57_06_646Z-debug.log\n'
  }
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! puppeteer@5.2.1-post install: `node install.js`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the puppeteer@5.2.1-post install script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  </code></pre>
  <p>and also when <code>npm run bundle</code> is run it says <code>missing script:bundle.js</code></p>
  <p>I am running all of these on Windows 10, I have Node v12.18.3 and npm v6.14.6 installed.</p>
  <p>I have browserify installed however I have yet to use it. Do I need to set anything else up? Also if there is a better alternative to web scraping on a Chrome Extension please let me know.</p>
  <p>Thank you for your time!</p>