Skip to content

Commit 6aa0333

Browse files
committed
chore: wip
1 parent 3359238 commit 6aa0333

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.stacks/ensure.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ then
2323
echo "Node.js version $REQUIRED_NODE_VERSION not found. Installing..."
2424
nvm install "$REQUIRED_NODE_VERSION"
2525
fi
26+
nvm use "$REQUIRED_NODE_VERSION"
2627
elif [ -f "$HOME/.fnm/fnm" ]; then
2728
echo "fnm found. Installing Node.js version $REQUIRED_NODE_VERSION..."
2829
fnm install "$REQUIRED_NODE_VERSION"
@@ -31,6 +32,7 @@ then
3132
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
3233
. "$HOME/.nvm/nvm.sh"
3334
nvm install "$REQUIRED_NODE_VERSION"
35+
nvm use "$REQUIRED_NODE_VERSION"
3436
fi
3537
fi
3638

0 commit comments

Comments
 (0)