Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chrome、puppeteer 安装不成功 #151

Open
diyes opened this issue Mar 9, 2022 · 2 comments
Open

chrome、puppeteer 安装不成功 #151

diyes opened this issue Mar 9, 2022 · 2 comments

Comments

@diyes
Copy link

diyes commented Mar 9, 2022

请按照一下格式提交issue,谢谢!

  1. 你当前使用的是哪个版本的 BookStack?
    [v2.10]

  2. 你当前使用的是什么操作系统?
    Ubuntu 18.04

  3. 你是如何操作的?
    安装chrome、puppeteer 出错,后跳过该步骤直接下一步安装bookstack,可以进系统,后台出现错误,
    `

chrome 未安装 chrome浏览器,即谷歌浏览器,或者chromium-browser,用于渲染markdown内容为HTML。 fork/exec /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome: no such file or directory
puppeteer 未安装 puppeteer, node.js的模块,用于将markdown渲染为HTML以及生成电子书封面。 安装教程 exit status 1 module.js:549 throw err; ^ Error: Cannot find module 'puppeteer' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (/www/wwwroot/172.16.11.85/test.js:2:19) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3)
`
  1. 你期望得到什么结果?

安装成功
5. 当前遇到的是什么结果?

@zining3235
Copy link

zining3235 commented May 21, 2022

谷歌浏览器,用于发布内容的时候渲染未被渲染的markdown。建议安装最新版的Chrome浏览器,并把Chrome浏览器加入系统环境变量。

使用Chrome的headless去处理。之前考虑使用phantomjs的,但是phantomjs有些小问题,不如Chrome强大。

chrome= chromium
chrome=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
chrome=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
chrome= chromium

如果使用 puppeteer,则忽略chrome

puppeteer = false

@Yuelioi
Copy link

Yuelioi commented Dec 3, 2022

chrome安装步骤那里 不是有个让你打印百度页面么 不成功说明你chrome不行 重安chrome
注: 安之前 请给yum换源(比如阿里源) 不然因为魔法原因 概率安不上(我换源后就能安了)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants