Skip to content

Commit

Permalink
chore(core): wait for nvm use to finish
Browse files Browse the repository at this point in the history
This solves the underlying problem of builds not working on my machine.
Seems the environment isn't fully set after calling `nvm use`, so we have
to either `sleep 1` or wait for the process to end (which this change
does).
  • Loading branch information
ermshiperete committed Dec 5, 2024
1 parent 7caf607 commit fbc3790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/shellHelperFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ _select_node_version_with_nvm() {
CURRENT_NODE_VERSION="$(node --version)"
if [[ "$CURRENT_NODE_VERSION" != "v$REQUIRED_NODE_VERSION" ]]; then
nvm install "$REQUIRED_NODE_VERSION"
nvm use "$REQUIRED_NODE_VERSION"
start /wait nvm use "$REQUIRED_NODE_VERSION"
fi
fi

Expand Down

0 comments on commit fbc3790

Please sign in to comment.