If you are experiencing an error while installing a react project such as the following:
npm ERR! Unexpected end of JSON input while parsing near '..."1.2.4"},"optionalDep'
Then try this:
npm cache clean --force
And run the script to install the project again. That is,
npm install
And it works like a charm!
npm cache clean --force used to delete all data out of the cache folder.
npm ERR! Unexpected end of JSON input while parsing near '..."1.2.4"},"optionalDep'
Then try this:
npm cache clean --force
And run the script to install the project again. That is,
npm install
And it works like a charm!
npm cache clean --force used to delete all data out of the cache folder.
Comments
Post a Comment