Skip to content

fix: build on windows #21287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jesse205
Copy link
Contributor

@Jesse205 Jesse205 commented Apr 19, 2025

changed node --run to pnpm run

Description

Fix the build on Windows.

The project uses node --run to execute multiple commands, but this causes an error when setting environment variables:

Snipaste_2025-04-20_06-17-57

(The error reported here may indicate that NODE_ENV is not recognized as an internal or external command.The garbled text is likely due to my use of Simplified Chinese Windows.)

After switching to pnpm run, this issue no longer occurs.

Snipaste_2025-04-20_06-34-21

Markup:

changed `node --run` to `pnpm run`
@MajesticPotatoe MajesticPotatoe added platform specific The issue only occurs on a specific platform T: bug Functionality that does not work as intended/expected labels Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform specific The issue only occurs on a specific platform T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants