2

I got this error while installing Angular CLI

C:\Users\user>npm install -g @angular/cli
npm ERR! Unexpected end of JSON input while parsing near '...use-db","version":"
1.'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2017-12-10T15_06_38_9
53Z-debug.log
1
  • 1
    Looks like there's an issue on GitHub already: github.com/angular/angular-cli/issues/8817. If there's an error in some third-party tool, this isn't something SO can help you with. Commented Dec 10, 2017 at 12:25

1 Answer 1

1

Run the following command. It worked for me.

npm cache clean --force

and then install the CLI.

npm install -g @angular/cli

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.