Skip to content
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

Fails to run on Windows when using --production flag #50

Closed
plampila opened this issue Jun 25, 2019 · 0 comments
Closed

Fails to run on Windows when using --production flag #50

plampila opened this issue Jun 25, 2019 · 0 comments

Comments

@plampila
Copy link
Contributor

Running on Windows fails when using the --production flag because spawning an npm process fails.

This is because spawn does not use the PATHEXT env var on Windows and does not find the npm command that is actually called npm.cmd. See: nodejs/node-v0.x-archive#2318

Not sure what is the best way to deal with this issue. There is a cross-spawn package. Using shell option for spawn seems to be an option etc.

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

No branches or pull requests

1 participant