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

Node spawn causes issues with Windows. Replace with cross-spawn. #130

Closed

Conversation

whyjustin
Copy link

Should fix #121.

The errors stem from node's child_process.spawn ignoring PATH_EXT in Windows. See more details here: nodejs/node-v0.x-archive#2318. Replacing the native spawn with cross-spawn fixes these issues and is a more portable way of approaching the problem than attempting to append the appropriate extension to the preprocessor depending on the environment.

NOTE: On older versions of node (I believe < 0.12) this non-breaking warning comes along with cross-spawn:

Native thread-sleep not available.
This will result in much slower performance.
You should re-install spawn-sync if possible.

Review on Reviewable

@whyjustin
Copy link
Author

Travis failing for older versions of node. Looks like the 0.4 failure is build env specific, the other failures could be solved by changing cross-spawn versions. Will wait for advice from @jacobrask.

@whyjustin
Copy link
Author

Closing due to age. Over 2 years old.

@whyjustin whyjustin closed this Oct 10, 2017
@whyjustin whyjustin deleted the Node_Spawn_Issues_With_Windows branch October 10, 2017 23:26
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.

Styledocco with scss not working on windows
1 participant