Skip to content

Commit edf7091

Browse files
committed
Support offline visualization by first installing npm packages locally
1 parent 5f36381 commit edf7091

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/visualization/visualizeQueryResults.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,7 @@ fi
6363

6464
# Run GraphViz command line interface (CLI) wrapped utilizing WASM (WebAssembly)
6565
# to convert the DOT file to SVG operating system independently.
66+
# Use "npm install" first to create local "node_modules" and be able to run it after that in offline mode.
6667
echo "visualizeQueryResults: Info: Using npx to run GraphViz CLI (Web Assembly Wrapper) for SVG generation."
68+
npm install @hpcc-js/wasm-graphviz-cli@1.2.6 --silent --no-progress --loglevel=error > /dev/null
6769
npx --yes @hpcc-js/wasm-graphviz-cli@1.2.6 -T svg "${inputCsvFilePath}/${graphName}.gv" > "${inputCsvFilePath}/${graphName}.svg"

0 commit comments

Comments
 (0)