Skip to content

Commit 1413e79

Browse files
committed
refresh env in powerShell
1 parent 1811867 commit 1413e79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared-scripts.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,10 @@ function _setupNodeVersionWindows {
549549
# Install Node.js using Chocolatey
550550
choco install -fy nodejs-lts --version=$version
551551

552-
# Refresh environment variables
553-
refreshenv
552+
# Refresh environment variables (in PowerShell)
553+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::Process)
554554

555555
# Verify the Node.js version in use
556556
nodeVersion=$(node -v)
557557
echo "Node version: $nodeVersion"
558-
}
558+
}

0 commit comments

Comments
 (0)