Languages
[Edit]
EN

Yarn - cache clean (error An unexpected error occurred: "C:\Users\John\...\node_modules\osenv\.yarn-metadata.json: Unexpected end of JSON input")

6 points
Created by:
JustMike
25940

In this article we would like to show how to clean yarn cache when following error occcured:

error An unexpected error occurred: "C:\Users\John\AppData\Local\Yarn\Cache\v6\npm-osenv-0.1.5-85cdfafaeb28e8677f416e287592b5f3f49ea410-integrity\node_modules\osenv\.yarn-metadata.json: Unexpected end of JSON input"

Run in terminal (in project directory):

yarn cache clean

Check below description too:

Probem overview

During yarn install executing I got folowing error:

$ yarn install
yarn install v1.22.0
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "C:\Users\John\AppData\Local\Yarn\Cache\v6\npm-osenv-0.1.5-85cdfafaeb28e8677f416e287592b5f3f49ea410-integrity\node_modules\osenv\.yarn-metadata.json: Unexpected end of JSON input".
info If you think this is a bug, please open a bug report with the information provided in "C:\Users\John\Desktop\Projects\seller-operator-ui\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Problem solution

Run in terminal (in project directory):

yarn cache clean

 

Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join