Angular:
Firebase:
AngularFire:
Other (e.g. Ionic/Cordova, Node, browser, operating system):
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
Steps to set up and reproduce
Sample data and security rules
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
* Errors in the JavaScript console *
* Output from firebase.database().enableLogging(true); *
* Screenshots *
root@kali:~# npm install @angular/fire firebase --save
npm ERR! Unexpected end of JSON input while parsing near '...11.4.1","ts-loader":"'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-11-09T07_54_18_957Z-debug.log
same issue...
unexpected end of Json input
Cleaning the corrupted local npm cache may fix this error.
npm cache clean --force
Just run your npm command again after executing the above command in your terminal.
There could be few other reasons for the invalid JSON, as described in the official documentation here.
The official npm website has well documented most of the common errors. But unfortunately they don鈥檛 appear on the top results when you google the error.
@RavenColEvol That indicates that there's a syntax error in your package.json. Try running it through a linter to see where the problem lies.
Most helpful comment
Cleaning the corrupted local npm cache may fix this error.
Just run your npm command again after executing the above command in your terminal.
There could be few other reasons for the invalid JSON, as described in the official documentation here.
The official
npmwebsite has well documented most of the common errors. But unfortunately they don鈥檛 appear on the top results when you google the error.