Here is solution when you have an error that looks like the following:
npm ERR! Unexpected end of JSON input while parsing near '...en","version":"1.3.1"'
I encountered this while installing packages in my node.js project.
I simply ran the command: npm cache clean --force
And then tried to intsall the package again. It worked!
npm ERR! Unexpected end of JSON input while parsing near '...en","version":"1.3.1"'
I encountered this while installing packages in my node.js project.
I simply ran the command: npm cache clean --force
And then tried to intsall the package again. It worked!
Comments
Post a Comment