Top community members
All Wiki Articles Create Wiki Article

In the past we had a dream,
to have place where we could share IT knowledge,
to ask questions without fear that someone will judge us.

Now we are a group of people who make this dream come true. ❤ 💻

If you think sharing knowledge and helping other is valuable.

join our community - Click here

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

0 contributions
6 points

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

 

0 contributions

Checkout latest Findings & News:

Checkout latest questions:

Checkout latest wiki articles:

Hey 👋
Would you like to know what we do?
  • Dirask is IT community, where we share coding knowledge and help each other to solve coding problems.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.
Read more