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

Allow windows users to run commands #13

Merged
merged 1 commit into from
Sep 23, 2019
Merged

Allow windows users to run commands #13

merged 1 commit into from
Sep 23, 2019

Conversation

MagWeaver
Copy link
Contributor

@MagWeaver MagWeaver commented Sep 19, 2019

When setting up the Elivagar stack using windows I ran into an error when packaging lambdas.

image

Pulling down the repo and investigator further revealed that spawn doesn't execute npm commands in windows: nodejs/node#3675.

nodejs/node#3675 (comment)
Node docs: https://nodejs.org/api/child_process.html#child_process_default_windows_shell

Please test.

child_process.spawn was not working with npm commands on windows.
I would have to run npm.cmd instead.
Copy link

@bmwynne bmwynne left a comment

Choose a reason for hiding this comment

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

Tested change and package-lambda now spawns process in windows shell. Still works on Mac OS and Ubuntu 18.04. This resolves a blocker for development in Windows without WSL.

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.

3 participants