mapperplus icon indicating copy to clipboard operation
mapperplus copied to clipboard

Puppeteer is missing

Open xnl-h4ck3r opened this issue 2 years ago • 1 comments

Hi @midoxnet I followed the installation instructions and ran requirements.sh to install npm packages, but when I run python3 mapperplus.py -u https://example.com -t test I get this error:

Processing for target: test
Using URL: https://example.com

    Puppeteer is missing. :-)

    Note: puppeteer is a peer dependency of puppeteer-extra,
    which means you can install your own preferred version.

    - To get the latest stable version run: 'yarn add puppeteer' or 'npm i puppeteer'

    Alternatively:
    - To get puppeteer without the bundled Chromium browser install 'puppeteer-core'

Error occurred: /home/xnl/Tools/mapperplus/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:3
  `):"",this.name="UnsubscriptionError",this.errors=e}})});var K=s(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.arrRemove=void 0;function Rs(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}Rr.arrRemove=Rs});var C=s(T=>{"use strict";var uo=T&&T.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},oo=T&&T.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},ao=T&&T.__spreadArray||function(r,t){for(var e=0,n=t.le

SyntaxError: Unexpected token ?
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/xnl/Tools/mapperplus/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js:19:19)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Processing maps for target: test
All operations completed successfully!

If I try to run npm install pupeteer I get the error:

> [email protected] postinstall /home/xnl/Tools/mapperplus/node_modules/puppeteer
> node install.mjs

Browser download failed ReferenceError: await is not defined
    at Object.<anonymous> (/home/xnl/Tools/mapperplus/node_modules/puppeteer/install.mjs:1:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=16.13.2"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=14"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN [email protected] No repository field.

+ [email protected]
updated 1 package and audited 168 packages in 3.23s

10 packages are looking for funding
  run `npm fund` for details

found 1 moderate severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

Any ideas how to resolve that? Thanks

xnl-h4ck3r avatar Dec 22 '23 23:12 xnl-h4ck3r

It seems that you are using an old version of nodejs. The required version is >=16.13.2 and you are using 10.19.0.

AetherFabian avatar May 06 '24 17:05 AetherFabian

Hi @AetherFabian. Thanks for that! Apologies for not paying attention to the actual errors that were shown!!

xnl-h4ck3r avatar Jul 16 '24 01:07 xnl-h4ck3r