From 6f221c3b314663d7683f7b075aee06df862a6a1c Mon Sep 17 00:00:00 2001 From: jobala Date: Thu, 19 Jan 2023 17:11:30 +0000 Subject: [PATCH 1/2] chore: disable install node --- run-build-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run-build-functions.sh b/run-build-functions.sh index 219594c4..2a46daee 100755 --- a/run-build-functions.sh +++ b/run-build-functions.sh @@ -296,6 +296,7 @@ install_node() { local defaultNodeVersion=$1 local featureFlags=$2 + source $NVM_DIR/nvm.sh : ${NODE_VERSION="$defaultNodeVersion"} @@ -390,7 +391,7 @@ install_dependencies() { fi # Node.js version - install_node "$defaultNodeVersion" "$featureFlags" + # install_node "$defaultNodeVersion" "$featureFlags" # Automatically installed Build plugins if [ ! -d "$PWD/.netlify" ] From 93cc58c28d0cd056ccfb2c5937105074d6c5a8fb Mon Sep 17 00:00:00 2001 From: jobala Date: Thu, 19 Jan 2023 20:24:34 +0000 Subject: [PATCH 2/2] chore: source nvm --- run-build-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run-build-functions.sh b/run-build-functions.sh index 2a46daee..38bf3da6 100755 --- a/run-build-functions.sh +++ b/run-build-functions.sh @@ -45,6 +45,8 @@ mkdir -p $NETLIFY_CACHE_DIR/node_version mkdir -p $NETLIFY_CACHE_DIR/ruby_version mkdir -p $NETLIFY_CACHE_DIR/swift_version +source $NVM_DIR/nvm.sh + # pwd caches NETLIFY_JS_WORKSPACES_CACHE_DIR="$NETLIFY_CACHE_DIR/js-workspaces" @@ -297,7 +299,6 @@ install_node() { local featureFlags=$2 - source $NVM_DIR/nvm.sh : ${NODE_VERSION="$defaultNodeVersion"} # restore only non-existing cached versions