mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
Fix phantomjs invocation for Ubuntu 16.04
This commit is contained in:
@@ -28,7 +28,12 @@ function execPhantomjsToLoadHtmlSaveScreenshotPng (html, verify) {
|
||||
function execCmd (cmd, verify) {
|
||||
console.log('cmd: ', cmd)
|
||||
exec(cmd,
|
||||
{ env: { PATH: './node_modules/.bin' + path.delimiter + process.env.PATH } },
|
||||
{ env: {
|
||||
PATH: './node_modules/.bin' + path.delimiter + process.env.PATH,
|
||||
|
||||
// https://github.com/ariya/phantomjs/issues/14376
|
||||
QT_QPA_PLATFORM: 'offscreen'
|
||||
} },
|
||||
function (error, stdout, stderr) {
|
||||
console.log('error:', error, '\nstdout:\n', stdout, '\nstderr:\n', stderr)
|
||||
verify(error, stdout, stderr)
|
||||
|
Reference in New Issue
Block a user