Spaces:
Sleeping
Sleeping
Fix: ensure tesseract-ocr is installed and npm global bin is in PATH for correct mmdc version
Browse files- install.sh +3 -0
- packages.txt +2 -1
install.sh
CHANGED
@@ -21,6 +21,9 @@ npm install -g npm
|
|
21 |
# Install the latest mmdc (e.g., 11.4.2)
|
22 |
npm install -g @mermaid-js/[email protected]
|
23 |
|
|
|
|
|
|
|
24 |
# Print versions for debugging
|
25 |
echo "Node.js version: $(node --version)"
|
26 |
echo "npm version: $(npm --version)"
|
|
|
21 |
# Install the latest mmdc (e.g., 11.4.2)
|
22 |
npm install -g @mermaid-js/[email protected]
|
23 |
|
24 |
+
# Ensure npm global bin is in PATH for all processes
|
25 |
+
export PATH="$(npm bin -g):$PATH"
|
26 |
+
|
27 |
# Print versions for debugging
|
28 |
echo "Node.js version: $(node --version)"
|
29 |
echo "npm version: $(npm --version)"
|
packages.txt
CHANGED
@@ -11,4 +11,5 @@ libxdamage1
|
|
11 |
libxrandr2
|
12 |
libgbm1
|
13 |
libxss1
|
14 |
-
libasound2
|
|
|
|
11 |
libxrandr2
|
12 |
libgbm1
|
13 |
libxss1
|
14 |
+
libasound2
|
15 |
+
tesseract-ocr
|