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 happened while child-process was executing command task with gulp-run #2400

Closed
github-paul opened this issue Dec 4, 2019 · 2 comments

Comments

@github-paul
Copy link

github-paul commented Dec 4, 2019

Task in gulpfile.js like this,
image

Error message from running gulp as below,
image

i am sure jsdoc package is installed in the folder, because i could run the command successful manually,
image

my node.js version is 6.11.0
gulp local version is 3.9.1
jsdoc version is 3.5.5

the question is why the child-process was finding jsdoc conf.json under System folder instead of current working directory? is it an issue in gulp? what can i do to resolve it?
appreciate for your help!

@github-paul
Copy link
Author

the root cause is gulp-run use "cmd.exe /c jsdoc -c jsdoc/conf.json" for running in the child process if system is windows, system will find the file in the default directory if not assign, cwd parameter does not work.
image

the temporary solution i use is assigning the detailed path to the folder, like c:\d1\d2\conf.json, conf.json file is also modified if needed, then the error is gone.

@github-paul
Copy link
Author

i think there has other solutions, share it here if you think out a better one.

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