-
Notifications
You must be signed in to change notification settings - Fork 41
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
Unexpected end of JSON input #42
Comments
Thanks, that's super useful! I'll happily take a PR if you would like to submit |
This is turning out to be more difficult than I first thought. In my particular case the |
This seems to be a bug with NPM. According to NodeJS (nodejs/node/issues/9633) all of STDIO is async, and if the process exits before all the data is flushed, it will not be able to be ready from In NPM's |
the same issue with |
I have the same issue with yarn as well ( |
First of all I love this utility, thanks for making!
I am getting the following error:
My package.json is:
I am using npm 5.0.0, and I suspect that the issue relates to
npm ls --json
printing errors after printing the json (note that sync-exec channels both STDOUT and STDERR and returns the combination).You should probably use:
Erroneous "JSON" output (note STDERR at end):
The text was updated successfully, but these errors were encountered: