Skip to content

Commit 71cebd9

Browse files
committed
manually update PATH
1 parent 81abaad commit 71cebd9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

shared-scripts.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,11 +550,12 @@ function _setupNodeVersionWindows {
550550
echo "Installing Node.js version $version on Windows"
551551

552552
# Install Node.js using Chocolatey
553+
echo "Installing Node.js version $version using Chocolatey"
553554
choco install -fy nodejs-lts --version=$version
554-
cmd //c refreshenv
555-
556-
# Refresh environment variables
557-
export PATH=$PATH
555+
556+
# Manually update PATH
557+
echo "Updating PATH to include Node.js"
558+
export PATH="/c/Program Files/nodejs:$PATH"
558559

559560
# Verify the Node.js version in use
560561
nodeVersion=$(node -v)

0 commit comments

Comments
 (0)