Facing error while installing firebase via npm | Unexpected end of JSON input while parsing near

懵懂的女人 提交于 2020-01-16 15:24:05

问题


I am trying to install firebase in my fresh react project, I could not able to install it.

Whether it is an error or the npm is taking time. I am waiting for more than half an hour.


回答1:


Try this (you may need to run sudo or if you're on Windows, open cmd as Admin)..

npm cache clean --force

then run

npm install firebase


来源:https://stackoverflow.com/questions/57937608/facing-error-while-installing-firebase-via-npm-unexpected-end-of-json-input-wh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!