Skip to content

Build your personal knowledge base with Trilium Notes

build: Fix Node version incompatibility

Elian Doran9db4e1d7d338
diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh
index 2936a925b3..271bc1f1a1 100755
--- a/bin/copy-trilium.sh
+++ b/bin/copy-trilium.sh
@@ -41,6 +41,7 @@ cp "$script_dir/../build/electron.js" "$DIR"
# run in subshell (so we return to original dir)
(cd $DIR && npm install --only=prod)
+(cd $DIR && npm run switch-electron)
if [[ -d "$DIR"/node_modules ]]; then
# cleanup of useless files in dependencies