Unexpected end of input when running flow-bin
dgcoffman opened this issue · 5 comments
Error: node_modules/http-parser-js/package.json:1
1: {
^ Unexpected end of input
When running flow.
Appears to be caused by the lines:
"Jan Sch�r (https://github.com/jscissr)",
"Paul R�tter (https://github.com/paulrutter)"
while
"Jan Schär (https://github.com/jscissr)",
"Paul Rütter (https://github.com/paulrutter)"
works fine for me.
Not sure exactly what character is supposed to be there. Maybe you can use different characters?
We're running in to this problem as well, it appears to be an encoding error of the package.json. When running in ISO encoding it doesn't fail on flow-bin. (this is not a solution, thanks to @jariz for finding this)
What is throwing that error/how to reproduce this? A new version of NPM? Parsing the package with Node? Some other app?
@Jimbly You can exec these commands:
mkdir flow-err
cd flow-err
yarn init -y
yarn add flow-bin http-parser-js
yarn flow init
yarn flow
Output:
Error: node_modules/http-parser-js/package.json:1
1: {
^ Unexpected end of input
Found 1 error
error Command failed with exit code 2.
Don't have "yarn", but found if I open a terminal in UTF-8 encoding, then I see the bad characters when I cat the file (though on GitHub they look good either way), and UTF-8 seems to be the normal in Node-land, so I re-saved package.json in UTF-8 and published that as v0.4.6 to NPM a moment ago, please let me know if it fixes it.
It works now! 👍