I had this error while creating a react app but most of the solutions I found didn't solve the error and I thought I should write this for future reference.
You have to clean cache for the error to go away as it's corrupt. The following are ways of doing it inside a terminal.
For npm
:
npm cache verify
If it still doesn't work try:
npm cache clean --force
For yarn
:
yarn cache clean
Top comments (0)