0
C:\Users\Tauseef\Desktop>npm install -g @angular/cli@latest
npm ERR! Unexpected end of JSON input while parsing near '...lr8Pw+hghLU8LySls45dS'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Tauseef\AppData\Roaming\npm-cache\_logs\2019-08-10T18_54_50_700Z-debug.log

That are happening while i am installing an Angular Cli....

R. Richards
  • 24,603
  • 10
  • 64
  • 64
Saher Noor
  • 11
  • 3
  • reinstall node js after clearing cache and angular cli,that might help – Shubham Dixit Aug 10 '19 at 18:59
  • 1
    Possible duplicate of [NPM Install Error:Unexpected end of JSON input while parsing near '...nt-webpack-plugin":"0'](https://stackoverflow.com/questions/47675478/npm-install-errorunexpected-end-of-json-input-while-parsing-near-nt-webpack) – Shubham Dixit Aug 10 '19 at 19:01

1 Answers1

0

Try clearing npm cache. Should work fine

npm cache clean --force

manhvd
  • 308
  • 2
  • 6