diff --git a/scripts/next-build.sh b/scripts/next-build.sh index ff134cf6fe..1013c36bdd 100755 --- a/scripts/next-build.sh +++ b/scripts/next-build.sh @@ -8,4 +8,8 @@ source ~/.bashrc cd next -APP_ENV=tugboat yarn build:preview \ No newline at end of file +# Make sure the correct node version is installed and in use +nvm install 18.17.0 +nvm use 18.17.0 + +APP_ENV=tugboat yarn build:preview diff --git a/scripts/next-install.sh b/scripts/next-install.sh index e7063b52c2..fbd122ef49 100755 --- a/scripts/next-install.sh +++ b/scripts/next-install.sh @@ -17,8 +17,10 @@ cd next #repo_root="$(git rev-parse --show-toplevel)" #pushd "${repo_root}" > /dev/null -nvm install 18.17.0 +# Make sure the correct node version is installed and in use +nvm install 18.17.0 nvm use 18.17.0 + corepack enable corepack prepare yarn@stable --activate echo "Node $(node -v)" diff --git a/scripts/next-start.sh b/scripts/next-start.sh index 99f1e59994..7f3b264aec 100755 --- a/scripts/next-start.sh +++ b/scripts/next-start.sh @@ -7,6 +7,10 @@ source ~/.bashrc cd next +# Make sure the correct node version is installed and in use +nvm install 18.17.0 +nvm use 18.17.0 + # Start the dev server. Vets-website assets will be available to the preview server after content-build builds them. # APP_ENV=tugboat yarn dev