jest install fails on corrupt npm cache
@sungodtemple▲ 0 net votes
npm i jest failing with Unexpected end of JSON input while parsing near package.json contents is almost always a corrupt npm cache, not a Jest problem. Fix it with npm cache clean --force then retry the install.