-
-
Notifications
You must be signed in to change notification settings - Fork 98
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 Module Error (newline-json\parser.js) #44
Comments
Same error here. Aparrently, is problem of new-linejson |
It appears both occurrences have happened on Windows. Also, |
parse.js |
I already try commenting out line. But don't still work here. |
That |
why is windows the problem? |
Can you guys test with |
Nothing here. I made all changes. https://github.com/mappum/electron-eval/compare/newline-fix And still show error here. |
I try with this: this.child.stdout.once('data', (data) => {
// this hack fixes issues where some environments (namely Windows)
// prepend a '\n' at the beginning of the stdout stream. This breaks
// the JSON parser, so if the stream starts with '\n' we skip it
while(true){
var dec = data.toString().charCodeAt(0) ;
if(dec != 13 && dec != 10) break;
data = data.slice(1, data.length)
}
this.stdout.write(data)
this.child.stdout.pipe(this.stdout)
}) This aparently work here. Optimize my code, please. Basicaly you need a left trim function in data array .. Sorry my english. Thank you |
This should be fixed as of |
Just tested on Windows. This looks fixed to me. Thanks @mappum. |
It seams like there is a error within one of the dependencies. I'm not sure if this is just a windows problem.
The text was updated successfully, but these errors were encountered: