DEV Community

Discussion on: npm ERR! Unexpected end of JSON input while parsing near

Collapse
 
russelsantos19 profile image
Russel Santos

I had the same problem but npm cache clean --force didn't work for me. What I did was CLEAN MY PC using my cleaner(CCleaner) and npm install work now. I did it because the problem appears after I uninstall my node.js because I want to install nvm-windows on my PC (docs.microsoft.com/en-us/windows/n...), but after I did it I think some files and folders was leave behind making a conflict after I install node using nvm thus npm install do not work. So I thought cleaning my pc would solve the problem and it did.
These are just my thoughts. Hope to help someone.