Fixes #12155. We can stop install process when the EJSONPARSE error happened, because the process never finish if npm can't parse package.json.
install: failing to parse package.json should be error
test: add test case - install parse error
I'm merging this as 2010d18. I did two things:
Thanks for letting me know them! The newer house style seems neat. Will try to read some the other tests and use it next time.
Merged into v3.8.8!