2

Actually I am creating an Angular application and I had encountered these errors while working:

npm ERR! Unexpected end of JSON input while parsing near '...,"karma-qunit":"*","k'
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Yuvan\AppData\Roaming\npm-cache\_logs\2018-12-02T14_06_06_337Z-debug.log
Package install failed, see above.
4
  • 1
    Please provide more information about your problem. Should be nice to view your package.json! I guess that there is your problem. Commented Dec 2, 2018 at 14:50
  • which commands have you typed to get these errors? Commented Dec 2, 2018 at 14:56
  • ng new angular-app Commented Dec 2, 2018 at 16:19
  • I got this error running 'npm install" Commented Aug 27, 2019 at 18:05

1 Answer 1

5

We can use the command of npm to clear these errors i had found that yesterday and it was pretty simple to use :

npm cache clean --force

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.