diff --git a/scripts/find-node.sh b/scripts/find-node.sh index 84e930a12d..2c7e894dd0 100755 --- a/scripts/find-node.sh +++ b/scripts/find-node.sh @@ -50,3 +50,9 @@ elif [[ -x "$(command -v brew)" && -f "$(brew --prefix asdf)/asdf.sh" ]]; then # shellcheck source=/dev/null . "$(brew --prefix asdf)/asdf.sh" fi + +# Set up volta if present +if [[ -x "$HOME/.volta/bin/node" ]]; then + export VOLTA_HOME="$HOME/.volta" + export PATH="$VOLTA_HOME/bin:$PATH" +fi