Skip to content

FIX: Windows support for npm lookup#1569

Open
fdubut wants to merge 1 commit intomicrosoft:mainfrom
fdubut:npm-windows-fix
Open

FIX: Windows support for npm lookup#1569
fdubut wants to merge 1 commit intomicrosoft:mainfrom
fdubut:npm-windows-fix

Conversation

@fdubut
Copy link
Copy Markdown
Contributor

@fdubut fdubut commented Apr 6, 2026

Description

Currently, the prepare_package.py script fails on Windows because it cannot find npm even though it is installed and accessible from the command line. This is apparently due to how subprocess handles aliases.

To fix the issue, we look up the actual location of npm and pass it to the subsequent script steps instead of passing directly npm. This is confirmed to work on Windows and Copilot says this should be also compatible with Linux but a maintainer should confirm.

@romanlutz
Copy link
Copy Markdown
Contributor

It would be cool to have tests for these build scripts but that's a separate issue.

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.

2 participants