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

Error with windows + nyc + execFileSync + bash + node #738

Closed
pangrr opened this issue Dec 6, 2017 · 9 comments
Closed

Error with windows + nyc + execFileSync + bash + node #738

pangrr opened this issue Dec 6, 2017 · 9 comments

Comments

@pangrr
Copy link

pangrr commented Dec 6, 2017

Please use the template provided below, when reporting bugs:

Expected Behavior

No error.

Observed Behavior

nyc mocha on source file with execFileSync('bash', ['-c', 'node --version']) results in error:

bash: /c/Users/xxx/.node-spawn-wrap-42508-a62de97b29d7/node: C:\Program: bad interpreter: No such file or directory

No error in linux.

Bonus Points! Code (or Repository) that Reproduces Issue

https://github.com/pangrr/demo-nyc_exec_bash_node_error

Forensic Information

Operating System: the operating system you observed the issue on.

windows 7

Environment Information: information about your project's environment, see instructions below:

node 8.7.0
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys)
nyc 11.3.0
mocha 4.0.1

  1. run the following script:

sh -c 'node --version; npm --version; npm ls' > output.txt

  1. share a gist with the contents of output.txt.
@pangrr pangrr changed the title Error with nyc + execFileSync + bash + node Error with windows + nyc + execFileSync + bash + node Dec 6, 2017
@pangrr
Copy link
Author

pangrr commented Dec 11, 2017

it's due to spawn-wrap.js

@pangrr pangrr closed this as completed Dec 11, 2017
@gucong3000
Copy link

Related: istanbuljs/spawn-wrap#70

@gucong3000
Copy link

I think we should reopen this issue until spawn-wrap solves the problem and updates the dependencies.

@gucong3000
Copy link

This problem still continues to be reproduced today.

@gucong3000
Copy link

@pangrr Will you please reopen this issue until it is repaired and then closed?

@pangrr pangrr reopened this May 16, 2018
@gucong3000
Copy link

Related: istanbuljs/spawn-wrap#76

@stale
Copy link

stale bot commented Jan 5, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 5, 2019
@stale
Copy link

stale bot commented Mar 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 6, 2019
@stale stale bot closed this as completed Mar 13, 2019
@msm1089
Copy link

msm1089 commented Mar 23, 2019

I am getting this error:

$ nyc --reporter=html --reporter=text yarn run test

/c/Program Files (x86)/Yarn/bin/yarn: /c/Users/XXX/.node-spawn-wrap-13208-21ee5d328e1d/node: C:\Program: bad interpreter: No such file or directory
/c/Program Files (x86)/Yarn/bin/yarn: line 19: /c/Users/XXX/.node-spawn-wrap-13208-21ee5d328e1d/node: No error
/c/Program Files (x86)/Yarn/bin/yarn: /c/Users/XXX/.node-spawn-wrap-13208-21ee5d328e1d/node: C:\Program: bad interpreter: No such file or directory
/c/Program Files (x86)/Yarn/bin/yarn: line 19: /c/Users/XXX/.node-spawn-wrap-13208-21ee5d328e1d/node: No error

Could this be reopened please?

Operating System: the operating system you observed the issue on.
Windows 10

Environment Information: information about your project's environment
output.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants