Coder Social home page Coder Social logo

Comments (4)

superabbite1 avatar superabbite1 commented on August 16, 2024

作者大大能解答下吗

from bookstack.

superabbite1 avatar superabbite1 commented on August 16, 2024

image

image

自己改了下app.conf里的chrome的配置信息,现在chrome可以显示已安装了。

但是puppeteer还是不行,我自己在服务器中手动建一个index.js。内容如下。测试了下puppeteer功能是可以的

const puppeteer = require('puppeteer'); puppeteer.launch({ headless: false, // executablePath: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe', executablePath: 'C:\\Users\\Administrator.LCHDC01.000\\node_modules\\[email protected]@puppeteer\\.local-chromium\\win64-938248\\chrome-win\\chrome.exe' }).then(async browser => { const page = await browser.newPage(); await page.goto('https://www.baidu.com'); await page.screenshot({path: 'baidu.png'}); browser.close(); }).catch(err => { console.log(err); });

然后运行node index.js 可以生成图片

image

作者大大能看看为什么还是显示未安装吗

from bookstack.

zhudupi avatar zhudupi commented on August 16, 2024

我也出现了类似的问题,用pm2运行的Bookstack.exe就出现了puppeteer报错,双击运行的Bookstack.exe就显示安装成功。

from bookstack.

superabbite1 avatar superabbite1 commented on August 16, 2024

我双击运行的Bookstack.exe,也一样报错,显示未安装

from bookstack.

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.