Skip to content

fix: handle npm.cmd on Windows in runCommand#300

Merged
allenhutchison merged 1 commit intogemini-cli-extensions:mainfrom
Andrej730:fix/windows-spawn-npm
Mar 27, 2026
Merged

fix: handle npm.cmd on Windows in runCommand#300
allenhutchison merged 1 commit intogemini-cli-extensions:mainfrom
Andrej730:fix/windows-spawn-npm

Conversation

@Andrej730
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies scripts/start.js to ensure npm commands are correctly executed on Windows by appending the .cmd extension and enabling shell mode. Feedback was provided to improve the robustness of the options object spreading to prevent potential runtime errors if the argument is undefined.

Comment thread scripts/start.js
Copy link
Copy Markdown
Contributor

@allenhutchison allenhutchison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — small, focused Windows fix for the dev startup script. Follows the same pattern used in the upstream gemini-cli repo.

@allenhutchison allenhutchison merged commit 001181c into gemini-cli-extensions:main Mar 27, 2026
14 checks passed
@Andrej730 Andrej730 deleted the fix/windows-spawn-npm branch March 28, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: MCP server fails to start on Windows — spawn npm ENOENT

2 participants