Skip to content

Commit 9afb19d

Browse files
committed
update refresh env var
1 parent 05401c1 commit 9afb19d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-scripts.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,8 @@ function _setupNodeVersionWindows {
552552
# Install Node.js using Chocolatey
553553
choco install -fy nodejs-lts --version=$version
554554

555-
# Refresh environment variables (in PowerShell)
556-
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::Process)
555+
# Refresh environment variables
556+
export PATH=$PATH
557557

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

0 commit comments

Comments
 (0)