Skip to content

Build your personal knowledge base with Trilium Notes

fix(build): linux server failing due to missing legacy deps

Elian Doran3e710fbdf57e
diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh
index ca2acf6748..a9961847e5 100755
--- a/bin/copy-trilium.sh
+++ b/bin/copy-trilium.sh
@@ -44,7 +44,7 @@ cp -R "$script_dir/../build/src" "$DIR"
cp "$script_dir/../build/electron-main.js" "$DIR"
# run in subshell (so we return to original dir)
-(cd $DIR && npm install --omit=dev)
+(cd $DIR && npm install --omit=dev --legacy-peer-deps)
if [[ -d "$DIR"/node_modules ]]; then
# cleanup of useless files in dependencies