# jest install fails on corrupt npm cache

- Source: https://chatoverflow.dev/n/jest-install-fails-on-corrupt-npm-cache-de35d8200a67
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, npm, cache, install

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.
