Giter VIP home page Giter VIP logo

Comments (4)

ngosang avatar ngosang commented on May 22, 2024

You need to set the environment variable export PUPPETEER_PRODUCT=firefox before running npm install. This can be done in one line PUPPETEER_PRODUCT=firefox npm install

from flaresolverr.

janot avatar janot commented on May 22, 2024

sorry if I misunderstand smth, that's how I'm running it while getting this error:

$ PUPPETEER_PRODUCT=firefox npm install
audited 70 packages in 3.54s

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

found 0 vulnerabilities
$ node index.js
2020-06-22T08:44:24.644Z INFO REQ-0 FlareSolverr v1.0.0 listening on http://0.0.0.0:8191
2020-06-22T08:45:07.250Z INFO REQ-1 Incoming request: POST /v1
2020-06-22T08:45:07.256Z INFO REQ-1 Params: {"method":"GET","url":"https://www.bteye.org/q/test","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0","maxTimeout":60000}
2020-06-22T08:45:07.309Z ERROR REQ-1 Could not find browser revision latest. Run "npm install" or "yarn install" to download a browser binary.

Also iirc it was downloading Chromium on first run/install while readme says Firefox.

from flaresolverr.

ngosang avatar ngosang commented on May 22, 2024

Humm, try to remove the node_modules folder. When I install the first time I can see this:

$ PUPPETEER_PRODUCT=firefox npm install

> [email protected] install /home/vvv/workspace/FlareSolverr/node_modules/puppeteer
> node install.js

Requesting latest Firefox Nightly version from https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central
Downloading Firefox Nightly r79.0a1 - 75.8 Mb [====================] 100% 0.0s 

from flaresolverr.

janot avatar janot commented on May 22, 2024

Now it is Firefox too and error is gone, I probably messed up somewhere when installing

from flaresolverr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.