Trying to run:
npm install @angular-devkit/build-angular
Getting below while installing
npm ERR! Unexpected end of JSON input while parsing near '...npmjs.org/prelude-ls/'
Please help
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’t appear on the top results when you google the error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With