I am trying to add firebase to my react app.But when I type npm install firebase I get strange error like: Unexpected end of JSON input while parsing near 'Error message '. Error message is different every time i run npm install firebase.I have looked this questions:
- Firebase npm install error
- Unable to do "npm install --save firebase"
- Firebase - Failing to install firebase using npm but yarn works I have tried npm cache clean --force,and after npm update ,but that didn't work.Also I have tried downgrading npm,but that either did not work.Also I have tried uninstalling node,and installing again ,but that did not help either.Thanks in advance
npm version 6.13.7
node version v12.19.0