Giter VIP home page Giter VIP logo

Could not find Chrome (ver. 121.0.6167.85). This can occur if either 1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or 2. your cache path is incorrectly configured about memlab HOT 3 CLOSED

susakin avatar susakin commented on May 28, 2024
Could not find Chrome (ver. 121.0.6167.85). This can occur if either 1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or 2. your cache path is incorrectly configured

from memlab.

Comments (3)

susakin avatar susakin commented on May 28, 2024

你好 我在docker nodejs应用 里面去执行 memlab的方法,
const { leaks, runResult } = await run({ scenario });
const steps = runResult.getInteractionSteps();
let memoryInfo = {
leaks: JSON.stringify(leaks),
heapSizeBase: steps?.[0]?.JSHeapUsedSize,
heapSizeOpen: steps?.[1]?.JSHeapUsedSize,
heapSizeClose: steps?.[2]?.JSHeapUsedSize,
};
他会报
Could not find Chrome (ver. 121.0.6167.85). This can occur if either

you did not perform an installation before running the script (e.g. npx puppeteer browsers install chrome) or
your cache path is incorrectly configure
我看了之前有人提的issue 这个--chromium-binary 是不是可以解决这个问题,但是 这个命令只作用于 命令行,我翻看了 run方法的文档没有看到相关的api,英文不是很好 麻烦了

from memlab.

JacksonGL avatar JacksonGL commented on May 28, 2024

I solved this problem, I found that I need to install in the puppeteer folder in node_module under global memlab

According to the answer in #90, consider installing npm install puppeteer inside node_module.
When I get a chance, I will add a new option to specify the Chromium file path

参考一下 #90 的方法,可以试试写一个脚本 cd 到 node_module 的 puppeteer 文件夹安装 chromium
之后有时间会加一个 Chromium file path option

from memlab.

susakin avatar susakin commented on May 28, 2024

thx
谢谢老哥 我试试看

from memlab.

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.