From c29f1af48feaa95ee905891bda831254d82633cf Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 19 Apr 2021 20:26:58 +0200 Subject: [PATCH] use n to force node version (cherry picked from commit 51d1d8efb8017cc44f5a842dc49acccc056e8149) --- bin/copy-trilium.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh index 578d8b989..5032aeea5 100755 --- a/bin/copy-trilium.sh +++ b/bin/copy-trilium.sh @@ -5,7 +5,7 @@ if [[ $# -eq 0 ]] ; then exit 1 fi -npm run webpack +n exec 12 npm run webpack DIR=$1 @@ -27,7 +27,7 @@ cp -r electron.js $DIR/ cp webpack-* $DIR/ # run in subshell (so we return to original dir) -(cd $DIR && npm install --only=prod) +(cd $DIR && n exec 12 npm install --only=prod) # cleanup of useless files in dependencies rm -r $DIR/node_modules/image-q/demo