Skip to content

Commit 4868ba0

Browse files
committed
added path for downloaded node
1 parent 0fae214 commit 4868ba0

File tree

1 file changed

+3
-0
lines changed
  • ui/desktop/src/platform/windows/bin

1 file changed

+3
-0
lines changed

ui/desktop/src/platform/windows/bin/npx.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SET "GOOSE_NODE_DIR=%LOCALAPPDATA%\Goose\node"
66

77
REM === Check for previously downloaded portable Node.js ===
88
if exist "%GOOSE_NODE_DIR%\npx.cmd" (
9+
SET "PATH=%GOOSE_NODE_DIR%;!PATH!"
910
"%GOOSE_NODE_DIR%\npx.cmd" %*
1011
exit /b !errorlevel!
1112
)
@@ -41,6 +42,7 @@ REM === Download portable Node.js as last resort ===
4142

4243
REM Re-check cache (another parallel extension may have just installed it)
4344
if exist "%GOOSE_NODE_DIR%\npx.cmd" (
45+
SET "PATH=%GOOSE_NODE_DIR%;!PATH!"
4446
"%GOOSE_NODE_DIR%\npx.cmd" %*
4547
exit /b !errorlevel!
4648
)
@@ -66,6 +68,7 @@ del "%NODE_ZIP%" >nul 2>&1
6668
rmdir /s /q "%NODE_EXTRACT%" >nul 2>&1
6769

6870
if exist "%GOOSE_NODE_DIR%\npx.cmd" (
71+
SET "PATH=%GOOSE_NODE_DIR%;!PATH!"
6972
echo [Goose] Node.js v%NODE_VERSION% ready. 1>&2
7073
"%GOOSE_NODE_DIR%\npx.cmd" %*
7174
exit /b !errorlevel!

0 commit comments

Comments
 (0)