Fix node version string when running asdf install nodejs (#2524)

This commit is contained in:
Chris Estreich 2025-04-12 01:06:03 -07:00 committed by GitHub
parent 91178628aa
commit 2c8304ea31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,8 +179,8 @@ for i in "${!options[@]}"; do
case "${plugin}" in
"nodejs")
if ! command -v node &>/dev/null; then
asdf install nodejs v20.18.1 || exit 1
asdf set nodejs v20.18.1 || exit 1
asdf install nodejs 20.18.1 || exit 1
asdf set nodejs 20.18.1 || exit 1
NODE_VERSION=$(node --version)
echo "✅ Node.js is installed ($NODE_VERSION)"
else