From 5484d7b74931a10c6a7d553409660a461fbe5b26 Mon Sep 17 00:00:00 2001 From: Matjaz Verbole Date: Thu, 15 Aug 2024 16:31:04 +0200 Subject: [PATCH] Fix default node version issue (#37) ### What was the problem? This PR resolves LISK-944. ### How was it solved? Alias for default node.js version was created. This version is later used inside `installApplication.sh` script. --- scripts/installApplication.sh | 2 ++ scripts/installDependencies.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/scripts/installApplication.sh b/scripts/installApplication.sh index 9675d45cb..4b06e7c35 100644 --- a/scripts/installApplication.sh +++ b/scripts/installApplication.sh @@ -4,5 +4,7 @@ app_dir_name=/home/ubuntu/lisk-across-relayer cd $app_dir_name echo "Current DIR: $PWD" + +nvm use yarn install --frozen-lockfile yarn build \ No newline at end of file diff --git a/scripts/installDependencies.sh b/scripts/installDependencies.sh index 50d3ece0c..f48eeb15a 100644 --- a/scripts/installDependencies.sh +++ b/scripts/installDependencies.sh @@ -36,6 +36,7 @@ install_node_version() { echo "Installing Node version $node_version..." nvm install $node_version + nvm alias default $node_version } install_node_version